[Nitro] Elements and Partials
gabriele renzi
rff_rff at yahoo.it
Tue Sep 18 12:34:29 EDT 2007
On Tue, 18 Sep 2007 13:22:10 +0300, George Moschovitis wrote:
>> was impossible, whereas it is possible to pass variables to rails'
>> partials.
>>
>
> This is certainly possible:
>
>
> class Element
> def render
> %{
> <div>index: #{attr :idx}</div>
> }
> end
> end
well, but I was talking in the context of variables that are not available
until the template is executed.
I didn't know this was possible now, I'm happy it is so :)
--
goto 10: http://www.goto10.it
blog it: http://riffraff.blogsome.com
blog en: http://www.riffraff.info
More information about the Nitro-general
mailing list