Right. Having updated the chameleon library, I can confirm that:
<!--! this is a comment -->
and
<tal:comment replace="nothing">
A comment
</tal:comment>
both work. This would be really helpful to be in the documentation when
there is chance.
Thanks for discussion and solution.
Ben
On 10 August 2011 12:33, Malthe Borch <[email protected]> wrote:
> On 10 August 2011 13:24, Christoph Zwerschke <[email protected]> wrote:
> > Why don't you do it the same way as in Kid and Genshi? Just looked it up
> > again, and as I already said, Kid and Genshi pass normal XML comments
> > except when they start with a "!"
>
> [... snip]
>
> But this is exactly what's in Chameleon already. If you put a "!" in
> the beginning of your comment, it will be dropped from output.
>
> > Makes more sense to me because it
> > allows you to generate all possible comments in the output, e.g. things
> > like <!--[if IE 6]> which may not have a question mark.
>
> I'm not sure I understand how it's not possible to create such comments
> today.
>
> (Note that the initial "?" is dropped from output).
>
> \malthe
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.