arnaud-lb / MtHaml

Multi target HAML (HAML for PHP, Twig, <your language here>)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for jade

hason opened this issue · comments

Jade is very similar to haml - http://jade-lang.com/

Maybe a separate bundle would be more logic, isn't it ?

Although there are standalone Jade libraries already, adding Jade support in MtHAML would allow to immediately get all of MtHAML's features:

  • compiling to Twig or PHP
  • :filters
  • auto-escaping

Jade and HAML have a lot in common. MtHAML could support Jade by adding a JadeParser and a few Node classes. Renderers, escaping, etc would only require very minor changes.