yield in ERB without rails

Posted by fursie on Stack Overflow See other posts from Stack Overflow or by fursie
Published on 2010-03-17T08:57:56Z Indexed on 2010/03/17 9:01 UTC
Read the original article Hit count: 513

Filed under:
|
|

Hi

How can I use yield for template inheritance in erb? I want to use erb in a plain ruby CGI script and want to use a base template and subtemplate like it Rails with the application template does.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about erb