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

PHP based SASS.. ?


Go to End


2 Posts   1598 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 :)