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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Themes /

Discuss SilverStripe Themes.

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

.ss files, comments and empty lines


Go to End


2 Posts   3365 Views

Avatar
yurigoul

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.)

Avatar
Graphicator

Community Member, 62 Posts

6 April 2011 at 2:13pm

Edited: 19/08/2011 10:58pm

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