[Nitro] Nuby templating question

Alan Garrison alang at cronosys.com
Wed Aug 17 15:23:52 EDT 2005


George Moschovitis wrote:

>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.
>
>
>  
>
Is there a particular reason that "<!-- these style comments -->" are 
stripped out by the template engine in the .xhtml files?  It's not a 
problem per se, just I was using the comments in different template 
files to keep track of which ones were rendering when, and I noticed 
that they weren't being sent at all.

-- 
Alan Garrison
Cronosys, LLC <http://www.cronosys.com>
Phone: 216-221-4600 ext 308





More information about the Nitro-general mailing list