--FILE--
<?php
$env = new MtHaml\Environment('twig', array('enable_escaper' => false));
echo $env->compileString($parts['HAML'], "$file.haml");

--HAML--

.foo.bar.baz

#id.foo.bar{"class" => "abc #{def}", "id" => "x"}

%p{:a => "b", :a => "c"}

--EXPECT--
<div class="foo bar baz"></div>
<div {% line 4 %}{{ mthaml_attributes([['class', ('foo' ~ ' ' ~ 'bar')], ['class', ('abc ' ~ def)], ['id', 'x']], 'html5', 'UTF-8')|raw }}></div>
<p a="c"></p>

