Haml renderer for Mojolicious

After writing Text::Haml which is a Haml implementation in Perl the next logical step was to write a renderer for Mojolicious. So here it is http://github.com/vti/mojox-renderer-haml. Besides a renderer itself there is also a Mojolicious::Plugin::HamlRenderer module that makes it really easy to plug in a new template handler.

# Load HAML renderer

And then you can write a new template template.html.haml in Haml:

      %h2 Hello, world!

And you will get:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
    <div id='main'>
      <h2>Hello, world!</h2>


blog comments powered by Disqus