From: Phlip Date: 2009-01-27T05:07:53+09:00 Subject: Re: non-invasive templating solutions in ruby? Terrence Brannon wrote: > hello, I am a perl and python programmer, Hello, I'm a programmer! > but for completeness, I > would like to know which dynamic html generation systems exist in Ruby > which focus on driving HTML generation outside of the HTML itself. > [% ELSE %] > Welcome [% name %]. > [% END %] Everyone uses eRB there. Except those who use HAML, or certain other systems, such as Builder::XmlMarkup. > whereas in a 'non-invasive' system there would only be HTML with id or > class tags > > > Look up 'lilu templates'. They hook into your Rails views, and use Hpricot's CSS selectors to search and replace HTML details before they go out. > $age->retain('under10') if $age < 10; Exactly - some similar detail in an 'instruction' file.