<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Overpass Experiences &#187; Textile</title>
	<atom:link href="http://www.wroolie.co.uk/tag/textile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wroolie.co.uk</link>
	<description>The Eric Wroolie Blog</description>
	<lastBuildDate>Fri, 27 Jan 2012 09:45:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Line Breaks in Webby</title>
		<link>http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/</link>
		<comments>http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 04:29:38 +0000</pubDate>
		<dc:creator>Eric Wroolie</dc:creator>
				<category><![CDATA[Software Dev & Productivity]]></category>
		<category><![CDATA[BR]]></category>
		<category><![CDATA[Line Break]]></category>
		<category><![CDATA[Redcloth]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Textile]]></category>
		<category><![CDATA[Webby]]></category>

		<guid isPermaLink="false">http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/</guid>
		<description><![CDATA[For the past few weeks, Iâve been using a tool called Webby for static html pages.Â  Webby is a Ruby-based tool which produces static html pages based on templates you create.Â  Think of it as using master pages in ASP.Net, except that the final product is files with a .html extension instead of .aspx (and [...]
Related posts:<ol>
<li><a href='http://www.wroolie.co.uk/2008/12/30/back-to-basics/' rel='bookmark' title='Back to basics'>Back to basics</a></li>
<li><a href='http://www.wroolie.co.uk/2006/12/12/78/' rel='bookmark' title='Jubilee Line in the Morning'>Jubilee Line in the Morning</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For the past few weeks, Iâve been using a tool called <a href="http://webby.rubyforge.org/" target="_blank">Webby</a> for static html pages.Â  Webby is a Ruby-based tool which produces static html pages based on templates you create.Â  Think of it as using master pages in ASP.Net, except that the final product is files with a .html extension instead of .aspx (and you donât get the asp.net processor kicking in each time this static page is called).</p>
<p>Itâs a great tool, because most of my sites need to have a consistent look and feel.Â  I donât want to copy html from one file to another and I can use a master page-like concept.Â  And it gives me the chance to toy around with Ruby a little bit (but not much).</p>
<p>In Webby, you create a <em>layout</em> page and the other pages as .txt files with html.Â  Run the command âwebby autobuildâ in a command window and each time you make a change to any of the files, it will create a folder called <em>output</em> with all of your processed html pages.</p>
<p>A problem I did have with the tool is that it was adding &lt;br /&gt; tags into my html where the line breaks where in my files.Â  I absolutely hate it when something tries to inject html into my code.Â  This is why I didnât use Frontpage and wonât use tools like Dreamweaver.Â  I know html is a lost art but . . .</p>
<p>So, in my files, I would type</p>
<blockquote>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">p</span><span class="kwrd">&gt;</span>I would type a paragraph that might be
lengthy, so I use multiple lines in the code
but don't expect the browser to interpret these.
I just want it to look for the tags.<span class="kwrd">&lt;/</span><span class="html">p</span><span class="kwrd">&gt;</span></pre>
</blockquote>
<p><!--.csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<p>What I got back in return was</p>
<blockquote>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">p</span><span class="kwrd">&gt;</span>I would type a paragraph that might be <span class="kwrd">&lt;</span><span class="html">br</span> <span class="kwrd">/&gt;</span>
lengthy, so I use multiple lines in the code<span class="kwrd">&lt;</span><span class="html">br</span> <span class="kwrd">/&gt;</span>
but don't expect the browser to interpret these.<span class="kwrd">&lt;</span><span class="html">br</span> <span class="kwrd">/&gt;</span>
I just want it to look for the tags.<span class="kwrd">&lt;/</span><span class="html">p</span><span class="kwrd">&gt;&lt;</span><span class="html">br</span> <span class="kwrd">/&gt;</span></pre>
</blockquote>
<p><!--.csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<p>It took me a few hours to figure out why this was happening (I couldnât find anything on Google with a âBR tags in Webbyâ search).</p>
<p>The problem is not with Webby, but with a tool called RedCloth, which Webby uses.Â  Redcloth does the html processing with something called Textile.Â  This is not a problem, but a feature in Redcloth from very 4 onwards.</p>
<p>After searching for hours (and contemplating whether to just transfer everything to aspx pages), I found that Webby was automatically adding a â- textileâ filter to all of the pages:</p>
<blockquote>
<pre class="csharpcode">---
title:      <span class="asp">&lt;%</span>= title <span class="asp">%&gt;</span>
created_at: <span class="asp">&lt;%</span>= Time.now.to_y <span class="asp">%&gt;</span>
filter:
  - erb
  - textile
---</pre>
</blockquote>
<p><!--.csharpcode, .csharpcode pre { 	font-size: small; 	color: black; 	font-family: consolas, "Courier New", courier, monospace; 	background-color: #ffffff; 	/*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt  { 	background-color: #f4f4f4; 	width: 100%; 	margin: 0em; } .csharpcode .lnum { color: #606060; } --></p>
<p>The simple solution, was the remove the textfile flag from all pages.Â  Remove the flag from the âtemplates/page.erbâ file in the project and you should remove it from all pages in the project.Â  Then you are master of all your html, my son.</p>
<p>I hope this</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Line+Breaks+in+Webby+http%3A%2F%2Fwroolie.co.uk%2F%3Fp%3D462" title="Post to Twitter"><img class="nothumb" src="http://www.wroolie.co.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/&amp;title=Line+Breaks+in+Webby" title="Post to Delicious"><img class="nothumb" src="http://www.wroolie.co.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/&amp;title=Line+Breaks+in+Webby" title="Post to Digg"><img class="nothumb" src="http://www.wroolie.co.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/&amp;t=Line+Breaks+in+Webby" title="Post to Facebook"><img class="nothumb" src="http://www.wroolie.co.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Line+Breaks+in+Webby&amp;link=http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/" title="Post to Ping.fm"><img class="nothumb" src="http://www.wroolie.co.uk/wp-content/plugins/tweet-this/icons/en/ping/tt-ping-micro3.png" alt="Post to Ping.fm" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/&amp;title=Line+Breaks+in+Webby" title="Post to StumbleUpon"><img class="nothumb" src="http://www.wroolie.co.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><p>Related posts:<ol>
<li><a href='http://www.wroolie.co.uk/2008/12/30/back-to-basics/' rel='bookmark' title='Back to basics'>Back to basics</a></li>
<li><a href='http://www.wroolie.co.uk/2006/12/12/78/' rel='bookmark' title='Jubilee Line in the Morning'>Jubilee Line in the Morning</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wroolie.co.uk/2009/09/18/line-breaks-in-webby/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
