template processing engine. The syntax is
### Your comment here
Seems wheels already started to reinvent themselves, so there seems to be a need for that.
(I used it for myself to document my thoughts on how the template works and which variables
it expects at the top.
Of course theres allways the possibilty of using a filter to strip away what ever you like, but
if there is quite a need it would be better to put it into the htmltmpl core.
Just my 2 cents
+rl
David Kaufman wrote:
Gabriel Fortuna <[EMAIL PROTECTED]> wrote:--
I want to document how the templates work and which switchesobviously.
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,
Is there any other mechanism that could be used/is used, as this isfirstly
insecure, and secondly, shoddy to the people that happen to glance at thethis has been discussed here in the past. the generally accepted idoim is:
html source.
I was thinking, it would be useful to have <!--TMPL_MSG NAME="My
message goes here" -->
<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
+rl
-------------------------------------
Roland Lammel
-------------------------------------
Services / Technical Assistance / PPA
Kapsch CarrierCom Triesterstr. 70a, 1102 Wien
-------------------------------------
mailto:[EMAIL PROTECTED]
Tel: +43 1 60501 - 3456 (ESN 572 3456)
Fax: +43 1 60501 - 3405
Mobil: +43 664 628 - 3456
-------------------------------------
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users
