[Nitro] transform_template -> block

George Moschovitis george.moschovitis at gmail.com
Mon Dec 26 05:42:35 EST 2005

> the string was then unterminated. It is an consequence of the way
> templates are built by Nitro, namely, turned into one big string with
> ruby script text interspersed. It seems like a hack, in a bad way.

not one big string, a series of

@out << "..."

instructions plus ruby code. This gets compiled as a method.
why is this bad?


> What would be a better way to build templates?
> Peter
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general


More information about the Nitro-general mailing list