Phlip
1/26/2009 8:06:00 PM
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
>
> <span id="age_dialog">
> <span id="under10">
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.