arnaud-lb / MtHaml

Multi target HAML (HAML for PHP, Twig, <your language here>)
Other
359 stars 54 forks source link

maybe something wrong in Twig example in readme.markdown #66

Closed scil closed 10 years ago

scil commented 10 years ago

haml snippet

%a(href=user.url) Home page

I get rendered ouput is

<a {{ mthaml_attributes([['href', (user.url)]], 'html5', 'UTF-8', false)|raw }}>Home page</a>

but readme.markdown is

<a href="{{ user.url }}">Home page</a>
vendethiel commented 10 years ago

I think it's just a simplification (?). Maybe we could actually get that simplification :)

arnaud-lb commented 10 years ago

It's a simplification, the point is mostly to show how haml is converted to html.

It's required to handle this particular case at runtime in order to support some features like special handling of boolean attributes.