sxua / HAML-SASS-for-Wordpress

Use HAML/SASS with Wordpress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how does it work?

dirkschmid opened this issue · comments

Hej,

i could you explain how i can get it work for my theme?
I tried it but without success ...

First of all, you'll need a ruby and haml/sass gems installed on your server, then you'll must allow PHP to execute shell commands.
HAML version must be >= 3.1!
Then install the plugins into Wordpress.
In the directory of your selected theme create 'haml' directory and put there next files - layout.haml (contains header and footer, you can see example here - https://github.com/sxua/HAML-SASS-for-Wordpress/blob/master/twentyten/layout.haml), index.haml (home page), and others like single.haml, 404.haml etc (filenames must be exactly the same as php files in your theme directory.
By the way, all php files must be in their place (they could be blank, just a dummy for Wordpress).
To use SASS - create any scss/sass file in theme directory and insert this code as css-path:

// for style.sass // for style.scss

That's all, I think :)