2009/6/22 Tim Cowlishaw <span dir="ltr"><<a href="mailto:tim@timcowlishaw.co.uk">tim@timcowlishaw.co.uk</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On 22 Jun 2009, at 17:08, Chris Mear wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Yeah, I've done something like this before, by building up the output using the concat method, and using capture to get the rendered results of blocks defined in the ERB template. Something like this should work:<br>

</blockquote></div>
[snip...]<br>
<br>
Aah yep - that looks good! However, am i right in thinking that that would break if i pass a regular ruby block to it, rather than a block containing an erb template fragment?</blockquote><div><br></div><div>Yes, I think capture would just return nil or an empty string.</div>
<div><br></div><div>Chris</div><div><br></div></div>