Try and learn about HAML-TO-PHP by example

Load sample:
 
You learn
HAML
(you can edit this):
rendered
generated PHP
HTML

Of course the library ships with a comprehensive test suite!

impressum