Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

.ss files, comments and empty lines

Go to End

2 Posts   3308 Views


Community Member, 203 Posts

11 November 2009 at 8:31am

I know I can add normal html comments to my .ss files, but I was wondering if there are also special .ss comments, and I would then prefer those comments to disappear when rendered in my site.

Right now the files my site renders are full with html comments and empty lines, and I just want my code to look beautiful:-)

(I know I can just remove all the formatting and comments when I am done, but that will render my .ss code less readable.)


Community Member, 62 Posts

6 April 2011 at 2:13pm

Edited: 19/08/2011 10:58pm

It is... <%-- comment --%>