[Nitro] Elements and Partials

George Moschovitis george.moschovitis at gmail.com
Tue Sep 18 06:22:10 EDT 2007


> 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


-g.


-- 
http://www.me.gr
http://phidz.com
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org


More information about the Nitro-general mailing list