[htmltmpl] Re: Syntax weirdness in NT/IIS on include(d) templates
Brought to you by:
samtregar
From: Jeff P. <jp...@gr...> - 2002-09-19 21:22:32
|
Howdy Roger! >Erm... how about using "<!--" rather than "<!-"? What you have isn't a valid HTML comment. H::T looks for "!--" rather than "!-"... > >Roger Actually, I had to re-type the code by hand, every time I pasted the code into the email it came up as jibberish. This time I used VIM instead of MS Script Debugger to paste the code. I reviewed the code again to make sure my eyes weren't fooling me. I took the same code and removed the bang-hyphen-hyphen/hyphen-hyphen and it works just great. It's not a big deal, just wanted to report this feature. The actual code snippet: *** DOES NOT WORK *** <!-- TMPL_IF EXPR="lc(FNAME) eq lc('/GHCExe/wa_testfile2.pl')" --> <font color="&H444466"><B>Return Home</B></font> <!-- TMPL_ELSE --> <a href="/GHCExe/wa_Testfile2.pl">Return Home</a> <!-- /TMPL_IF --> *** WORKS GREAT! *** <TMPL_IF EXPR="lc(FNAME) eq lc('/GHCExe/wa_testfile2.pl')"> <font color="&H444466"><B>Return Home</B></font> <TMPL_ELSE> <a href="/GHCExe/wa_Testfile2.pl">Return Home</a> </TMPL_IF> Thanx - Jeff. PS - I'll try to send this one w/o all the style tag garbage at the end - sorry! |