# HamlPHP Yet another Haml to HTML converter written in PHP. Check the [Wiki](https://github.com/hamlphp/HamlPHP/wiki) we've been adding some docs. ## Requirements PHP 5.2 or newer. ## Usage The simplest way to use HamlPHP is to manually. You can use mod_rewrite to redirect all your requests to index.php and render the .haml files from there. We'll add this example later. HamlPHP will cache compilation results, so the .haml file is only compiled to php once. index.haml ```haml !!! 5 %html %body #container %ul.navigation %li Etusivu %li Tuotteet %h2 Tuotteet %ul.products - for ($i = 0; $i < 10; $i++) %li= $i * 7 ``` In your index.php ```php parseFile('index.haml'); echo $parser->evaluate($content); ``` The compilation result will look like this: ```html