Forum Moderators: phranque

Message Too Old, No Replies

Commenting code in Page Templates

How to comment code in page templates

         

Demaestro

7:07 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have just switched to making pages using Page Templates. I am looking for a way to comment out code that wont render in the source code of the page.

I have been using tags with a condition that never evalulates to true.

So it looks like this:

<tal:block condition="python:0">
a bunch of code I dont want to run.
</tal:block>

I hate having to type out this whole tag everytime I want to comment out a block of code for debugging purposes.

Anyone know of a tag that does what I want?

txbakers

10:37 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<!-- --> always seemed to work for me

or in asp:

/*
hidden code
*/

Demaestro

4:38 pm on May 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Ya I dont want the comments to render in the source. Which is what happens when you use <!-- -->