[Nitro] Nuby templating question

George Moschovitis george.moschovitis at gmail.com
Fri Aug 12 11:43:49 EDT 2005


Yeah, if you define a subclass of Nitro::Element you can use it in
your tempates as a cheap form of macro or tag.

class MyTag < Nitro::Element
end

responds to 

<MyTag>...</MyTag>

or

<x:my_tag>...<x:/my_tag>

to be xhtml compliant

you can customize the x: prefix if you want.

regards,
George.


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




More information about the Nitro-general mailing list