<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Rails: An Adventure With Don&#8217;t Repeat Yourself (DRY) Template</title>
	<link>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/</link>
	<description>Web Development and Design, and Anything That Matters</description>
	<pubDate>Fri, 25 Jul 2008 11:51:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: wam</title>
		<link>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-33457</link>
		<pubDate>Wed, 13 Jun 2007 15:37:39 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-33457</guid>
					<description>Hey,

I just think you should rather declare your panel in your helpers file. It gives it a direct access to concat, and panel would rather look like :

def panel
 res = &quot;header ...&quot;

 res += yield
 res += &quot;footer&quot;
 return res
end

The only change is that you have to call panel this way : </description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I just think you should rather declare your panel in your helpers file. It gives it a direct access to concat, and panel would rather look like :</p>
<p>def panel<br />
 res = &#8220;header &#8230;&#8221;</p>
<p> res += yield<br />
 res += &#8220;footer&#8221;<br />
 return res<br />
end</p>
<p>The only change is that you have to call panel this way :
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Herryanto Siatono</title>
		<link>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-15776</link>
		<pubDate>Wed, 07 Feb 2007 13:58:30 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-15776</guid>
					<description>Thank you Raichu, yeah I've been using content_for in my layout file, it's good stuff, it's another way to keep your template file clean.

But for a case like I mentioned above, where the panel forms a mini inline-layout, you would find 'concat' come in handy.</description>
		<content:encoded><![CDATA[<p>Thank you Raichu, yeah I&#8217;ve been using content_for in my layout file, it&#8217;s good stuff, it&#8217;s another way to keep your template file clean.</p>
<p>But for a case like I mentioned above, where the panel forms a mini inline-layout, you would find &#8216;concat&#8217; come in handy.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Herryanto Siatono</title>
		<link>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-15775</link>
		<pubDate>Wed, 07 Feb 2007 13:53:31 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-15775</guid>
					<description>Harro, it will take time. :)</description>
		<content:encoded><![CDATA[<p>Harro, it will take time. :)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: el raichu</title>
		<link>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-15756</link>
		<pubDate>Wed, 07 Feb 2007 12:05:55 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-15756</guid>
					<description>hmm... maybe you already knew about content_for?

for a quick &lt;a href=&quot;http://www.microisv.com.ph/blog/flexible-page-layouts-using-ruby-on-rails.html&quot; rel=&quot;nofollow&quot;&gt; overview&lt;/a&gt; (http://www.microisv.com.ph/blog/flexible-page-layouts-using-ruby-on-rails.html)

or the &lt;a href=&quot;http://api.rubyonrails.org/classes/ActionView/Helpers/CaptureHelper.html&quot; rel=&quot;nofollow&quot;&gt;official api&lt;/a&gt; (http://api.rubyonrails.org/classes/ActionView/Helpers/CaptureHelper.html)</description>
		<content:encoded><![CDATA[<p>hmm&#8230; maybe you already knew about content_for?</p>
<p>for a quick <a href="http://www.microisv.com.ph/blog/flexible-page-layouts-using-ruby-on-rails.html" rel="nofollow"> overview</a> (http://www.microisv.com.ph/blog/flexible-page-layouts-using-ruby-on-rails.html)</p>
<p>or the <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/CaptureHelper.html" rel="nofollow">official api</a> (http://api.rubyonrails.org/classes/ActionView/Helpers/CaptureHelper.html)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Harro!</title>
		<link>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-15753</link>
		<pubDate>Wed, 07 Feb 2007 11:28:00 +0000</pubDate>
		<guid>http://www.pluitsolutions.com/2007/02/07/rails-an-adventure-with-dont-repeat-yourself-dry-template/#comment-15753</guid>
					<description>Hey Herry, I know RoR is way cool. But right now I am trying to figure out which commercial organisations would like need it....</description>
		<content:encoded><![CDATA[<p>Hey Herry, I know RoR is way cool. But right now I am trying to figure out which commercial organisations would like need it&#8230;.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
