Re: [htmltmpl] Comments
Brought to you by:
samtregar
From: Dan H. <dan...@re...> - 2007-03-07 20:19:00
|
> On Behalf Of David Kaufman > Dan Horne <dan...@re...> wrote: > > 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 > > <rem>...? REM?? REM?!?! Your BASIC is showing, Dan! > Ah, I'm getting all misty-eyed thinking about my youth. Long live the TRS-80! As an aside, H::T filters have other great uses. For instance I use [% and %] instead of < and > (e.g. [%rem%] and [%/rem%], and use [%=myvar%], [%IF mycondvar%], [%LOOP myloopvar%] instead of <tmpl_var name="myvar">, <tmpl_if mycondvar>, <tmpl_loop myloopvar>). This means that the editors that our designers prefer don't barf or complain about syntax errors when using HTML-like tag delimiters, and it also means that I don't lose my H::T code in all the HTML tags Dan |