Gabriel Fortuna <[EMAIL PROTECTED]> wrote:
>
> I want to document how the templates work and which switches
> should be used in the code and where to control my page displays. If I use
> the normal <!-- --> comment style, it shows up in my html source,
obviously.
> Is there any other mechanism that could be used/is used, as this is
firstly
> insecure, and secondly, shoddy to the people that happen to glance at the
> html source.
>
> I was thinking, it would be useful to have <!--TMPL_MSG NAME="My
> message goes here" -->
this has been discussed here in the past. the generally accepted idoim is:
<tmpl_if dummy_variable>
Place your comments here. And as long as dummy_variable is false,
(or never defined at all) your comments will be removed from the
output.
</tmpl_if>
a few have suggested that this is ugly, but I believe Sam's feeling was why
add syntactic sugar when this works Just Fine?
i myself would prefer the syntactic sugar, though. my suggestion was:
<tmpl_comment> ... </tmpl_comment>
recently i'v had to re-code a lot of cold fusion and while i abhor CFML in
general, i do envy some of the syntax. for instance (if you do't know CFML)
<!-- --> is of course a simple HTML comment that "shows up", while <!---
eith *three* dashes! ---> is recognized as a *server-side* comment, and
these are stripped out before the page is rendered.
pretty friggin handy!
-dave
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users