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

--HAML--
%p
  %q< Foo
%p
  %q{:a => 1 + 1}< Foo
%p
  %q< Foo Bar
%p
  %q{:a => 1 + 1}< Foo Bar
%p
  %q<
    Foo
    Bar
%p
  %q{:a => 1 + 1}<
    Foo
    Bar
%p
  %q<
    %div
      Foo
      Bar
%p
  %q{:a => 1 + 1}<
    %div
      Foo
      Bar

%p
  %q< foo
  %q{:a => 1 + 1}
    bar
--EXPECT--
<p>
  <q>Foo</q>
</p>
<p>
  <q {% line 4 %}{{ mthaml_attributes([['a', (1 + 1)]], 'html5', 'UTF-8')|raw }}>Foo</q>
</p>
<p>
  <q>Foo Bar</q>
</p>
<p>
  <q {% line 8 %}{{ mthaml_attributes([['a', (1 + 1)]], 'html5', 'UTF-8')|raw }}>Foo Bar</q>
</p>
<p>
  <q>Foo
  Bar</q>
</p>
<p>
  <q {% line 14 %}{{ mthaml_attributes([['a', (1 + 1)]], 'html5', 'UTF-8')|raw }}>Foo
  Bar</q>
</p>
<p>
  <q><div>
    Foo
    Bar
  </div></q>
</p>
<p>
  <q {% line 23 %}{{ mthaml_attributes([['a', (1 + 1)]], 'html5', 'UTF-8')|raw }}><div>
    Foo
    Bar
  </div></q>
</p>
<p>
  <q>foo</q>
  <q {{ mthaml_attributes([['a', (1 + 1)]], 'html5', 'UTF-8')|raw }}>
    bar
  </q>
</p>

