About this plugin
PHAMLP for WordPress enables theme creation using the HAML template system. HAML replaces the tag soup of most HTML/PHP templates with a cleaner, hierarchical markup language.
This is a simple plugin that only parses haml and sass/scss with included php code to their respective php source and renders that.
It DOES NOT include any of rail’s sophisticated templating tags, like link_to, image_tag etc..
If you want something like that you should take a look at the wordless plugin.
Any plain HTML/PHP theme will work while PHAMLP for WordPress is enabled. haml file and PHAMLP for WordPress will process them.
If enabled it will also check for sass/scss stylesheet files, compile them and replace the links in the final output.
css file.
The plugin parses haml and sass files into cached files in wp-content/phphaml4pw/tmp/php and wp-content/phphaml4pw/tmp/css respectively, for obvious reasons these folders need to be writable by your webserver.
com/Baldrs/phphaml for any syntax questions you might have.
com/p/phamlp/).
HAML Example
For an example HAML theme check the themes/ folder.
There are two ways you can make a theme:
a) The ruby way is to use layouts. haml file in your theme which basically comprises WP’s header and footer.
php files. ).
haml will be included.
Content_for does not yet work – sorry!
Licenses
- PHPHaml4WP a fork of Phamlp for wordpress, and is therefore available under the ISC license.
- PHPHAML’s license is included in the distribution.
- Sass Parser is from http://code.google.com/p/phamlp/ which uses the New BSD License.
- The included themes are derived from the TwentyTen theme that ships with WordPress and inherit the original theme’s GPL license.