[Nitro] Nuby templating question
George Moschovitis
george.moschovitis at gmail.com
Wed Aug 17 17:17:07 EDT 2005
They are removed to 'compress' output. Perhaps this 'feature' should be removed?
-g.
On 8/17/05, Alan Garrison <alang at cronosys.com> wrote:
> 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
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
--
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com
More information about the Nitro-general
mailing list