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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

.ss files, comments and empty lines


Go to End


2 Posts   3863 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 --%>