[Nitro] transform_template -> block
transfire at gmail.com
Mon Dec 26 23:51:03 EST 2005
On 12/24/05, Peter Abrahamsen <rainhead at gmail.com> wrote:
> This points to what I think is something that needs a bit of
> refactoring in Nitro, which is how Templates are generated. I started
> alert("Booga Booga!\n");
> failed because the \n was interpreted, not left as a literal as one
> 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.
> What would be a better way to build templates?
So it converted the \n into a newline? Is it supposted to do that?
Well, if so then I guess it needs to either allow for it's own form of
escaping or see that the \n is between quotes and do it automatically.
More information about the Nitro-general