Re: Comments
"Dan Horne" <[email protected]> Thu, 8 Mar 2007 08:57:54 +1300
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Organization | Dan Horne |
| Message-ID | <009c01c760f2$e674e0c0$6403a8c0@rdbxp02> |
One way is to use H::T filters. You could have something like <rem> and </rem> in your code, and use the filter functionality to remove the tags and enclosed content. There will be a performance hit - it works okay for me but YMMV Dan > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Robert Hicks > Sent: Thursday, 8 March 2007 5:41 a.m. > To: [email protected] > Subject: [htmltmpl] Comments > > In TT I can create a comment like: > > [%# This is a comment %] > > The benefit to that is that comment gets stripped out when > the template is processed (i.e you don't see it if you source > the HTML file from the browser window). > > Is there a way to create a filter in HT that does the same thing? > > > Robert > > > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to > share your opinions on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge &CID=DEVDEV > _______________________________________________ > Html-template-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/html-template-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV