Having used Haml and Sass for a few Rails side projects, I've found that they speed up my frontend development tremendously. However, I haven't found a Rails blogging platform that's as robust or familiar to clients as Wordpress, so that's still generally my go-to for projects that require a light website with basic CMS / blogging functionality. (I've looked into Radiant, Mephisto, etc, and while I certainly appreciate suggestions of Rails blog engines, that's not really the question I'm looking to answer here.)
I'd really like to be able to use Haml and Sass in the context of a Wordpress site, and while I'm aware of the existence of various PHP implementations, most seem inactive or buggy. Has anyone here had success using Haml and Sass with Wordpress sites? I'm asking this both in the context of Wordpress template files (the .php files that power a Wordpress theme) and in the HTML editing mode of the Wordpress editor, though the latter is far less important.
Note: I'm aware that I can just install the appropriate ruby gems and compile my own HTML/CSS from the Haml/Sass source; what I'm looking for is something more along the lines of the functionality I'm used to in Rails, where the compiled HTML/CSS is autogenerated on a per-request basis (caching behaviour would also be nice, but is certainly not required).
Thanks in advance!
Here is a new plugin I just released: http://wordpress.org/extend/plugins/wordpress-sass/
It does use PHamlP, with all its warts, but at least it doesn't require Compass on the server.
The plugin is very simple to implement and automatically regenerates your style.css whenever the style.scss file (or whatever you choose to name it) is updated.
More info: http://blogrescue.com/2011/12/sass-for-wordpress/
Ed
Haml requires Ruby at runtime. So you will not be able to use that for Wordpress templates. Thus, you have to rely on a PHP implementation.
For Sass, you can use the console tool Sass --watch for auto-compilation. See this blog post. Additionally, there is the Compass App, which gives you all the Compass features in a convenient OSX app.
Not as cool as running it on the server on a per-request basis, but FWIW, I built a script to auto-compile my haml/sass on my dev machine so at least I can use haml/sass to easily generate my Wordpress templates and CSS: https://gist.github.com/1169586 Enjoy!