WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WordPress SASS

This plugin provides automated SASS stylesheet generation.

It is not working - what is the problem?

I have no idea. But, if you add a second parameter to the wpsass_define_stylesheet() call in functions.php:

wpsass_define_stylesheet("style.scss", true);

Then any errors encountered will be printed as html comments on your site. That should provide some insight, but they will appear at the top of the page before the opening tag, so only use this feature to determine why style.css fails to update and then turn it back off again.

What SASS/SCSS Compiler Are You Using?

The standard compiler is Compass, but that typically requires installation on the server. To avoid requiring Compass or another haml/sass conversion program to be installed on your server, this plugin uses a PHP based compiler.

The initial release used a project named PHamlP (http://code.google.com/p/phamlp/), but that implementation had some serious flaws and has not been updated since late 2010. The plugin now uses a very up-to-date implementation named phpsass (https://github.com/richthegeek/phpsass) which looks to be a dramatic improvement.

What has changed since the last version?

First, the wpsass_define_stylesheet() function no longer requires the target filename. It does now require that the source filename has a .sass or .scss extention and the target will automatically be set to the basename with a .css extension.

Second, the plugin now automatically enqueues the target stylesheet (if it exists).

Requires: 3.0 or higher
Compatible up to: 3.4.2
Last Updated: 2012-10-24
Downloads: 2,530

Ratings

4 stars
4.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
50,2,1
0,1,0 100,1,1 100,2,2
100,1,1