[Nitro] how to initialize @color and make it visible into the template?

Jonathan Buch john at oxyliquit.de
Tue Jul 10 02:44:36 EDT 2007


Hi,

>> >       <div style="color: \#{@color}">

> the element will generate this code:
>
> <div style="color: #{colors[rand(colors.size)]}">...</div>

I don't think it does, I think it would be more like

>> >       <div style="color: \#{#{@color}}">

to paste the text correctly back to the template.  And no, I don't
really find it that visually pleasing.  :P

>> > <?r colors = [ "#ff0", "#f00", "#00f", #"0ff" ] ?>
>> > <Box color="colors[rand(colors.size)]">

Jo

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the Nitro-general mailing list