>  <img for="picture in @pictures" src="#{picture.source}" />

the for attribute is 'morphed' at compile time...

the #{...} interpolates the value of the standard src attribute at run time
(this is similar to <%= .. %> in fact you can use <% ... %> in Nitro as well...

-g.

>
> The way the "for" attribute and the "src" attribute are used seems
> inconsistent, especially because "src" uses "embedded" ruby while the
> other seems to be specially parsed. I haven't used the framework,only
> seen these screencasts, so take that for what it's worth. Thanks for
> making these available!
>
> George Moschovitis wrote:
> > Dear devs,
> >
> > as the first two videos were well received, I decided to make on more:
> >
> > http://www.nitrohq.com/videos/nitro4.html
> >
> > This time some sophisticated Web2.0 features of the Nitro framework
> > are demonstrated. The demo is based on the concept of a similar Rails
> > screencast (the flickr video). However, please note:
> >
> > - no generator is used.
> > - ajax code and templates are cleanly separated.
> > - standard html tags are naturally extended to support client side actions using
> >   Nitro's powerful morphing technology.
> > - Draggable and autocomplete effects as well as the programmatic render
> >   are also demonstrated.
> >
> > This is a simple demo, and does not demonstrate the full power of
> > Nitro. To feel the magic give it a try yourself:
> >
> > gem install nitro
> >
> > For more information browse: www.nitrohq.com or join the Nitro mailing list
>
>
>


--
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com