Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use Haml with Catalyst?

Is it possible to use Haml instead of a templating engine with the Catalyst web framework?

like image 842
Matteo Riva Avatar asked Dec 22 '22 07:12

Matteo Riva


1 Answers

Text::Haml exists now. I'm looking at maybe using it instead of HTML.HAML seems to lack some complex templating constructs such as conditionals and loops, so I'm considering writing a Template::Plugin::HAML to integrate for those extra constructs.

UPDATE

I implemented Template::Plugin::Haml using Text::Haml so now you and use Haml in your Template-Toolkit templates, which of course are easy to make on Catalyst. (note: if it says it's not there give it 24 hours and check again I just uploaded it)

like image 166
xenoterracide Avatar answered Dec 31 '22 23:12

xenoterracide