On Tue, Jun 19, 2012 at 5:26 AM, Todd Wei <[email protected]> wrote:
> I want to use ERB template library to do some code generation. It
> requires generating nested structures, so I need recursive
> template support. As I know, Rails does have recursive template support,
> but I can't find it in ERB document.
>
> Could someone confirm if there's recursive template support in the
> standard ERB template library? Thanks a lot!

What exactly do you mean by "recursive templates"?  Do you mean a
template which can present recursive structures such as trees?  Or do
you want an ERB template to include itself?  Both should be doable
since you can invoke arbitrary code.

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to