17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1120 Views |
-
Comments in the templates

28 February 2008 at 1:37pm
I am sure this is obvious and I am sure my question makes all experienced SS developers and users groan, but
Can I put comments in a template so that the next time I read the template I can understand the thinking behind the code, but it doesn't get translated for the browser? And if so, what does those comments look like?
-
Re: Comments in the templates

28 February 2008 at 8:26pm
you have to use normal html comments I guess for your templates <!-- this is a comment --> if you don't want it to show up in the browsers view source you could create a method in Page called Comment so you would have
function Comment() {
return false
}then in the template you could use <% if Comment %><!-- Write all your notes in here --><% end_if %>
| 1120 Views | ||
|
Page:
1
|
Go to Top |


