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

PHP based SASS.. ?


Go to End


2 Posts   2286 Views

Avatar
DsX

Community Member, 178 Posts

3 July 2013 at 4:16am

Edited: 03/07/2013 4:19am

I am working on a Foundation based theme.. however I would like to not use ruby.
Does anyone have experience/recommendations on how to go about using one of the available PHP based compilers rather than ruby with Foundation and Silverstripe?
I know Foundation uses SASS, so I imagine I need a PHP SASS complier like : http://www.phpsass.com/
Just unsure how this can integrate with silverstripe.

Avatar
Bambii7

Community Member, 254 Posts

19 July 2013 at 12:43pm

Depends on how you want to integrate. Full integration would be nice so SS builds and caches the files. But this could be involved. I would use it outside of SS, code in sass and use your preferred compiler. Checkout grunt.js you can set it to watch a directory and perform tasks on file change. So it can auto compile sass to css with what ever compiler you like, although this will be breaking out of a strictly php set up :)