Sha256: 08c4d3a13dbe7404e439801af5db1b612baa8644190eabc3a2a91eba72273097

Contents?: true

Size: 1.12 KB

Versions: 10

Compression:

Stored size: 1.12 KB

Contents

--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', false)|raw }}>Foo</q>
</p>
<p>
  <q>Foo Bar</q>
</p>
<p>
  <q {% line 8 %}{{ mthaml_attributes([['a', (1 + 1)]], 'html5', 'UTF-8', false)|raw }}>Foo Bar</q>
</p>
<p>
  <q>Foo
  Bar</q>
</p>
<p>
  <q {% line 14 %}{{ mthaml_attributes([['a', (1 + 1)]], 'html5', 'UTF-8', false)|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', false)|raw }}><div>
    Foo
    Bar
  </div></q>
</p>
<p>
  <q>foo</q>
  <q {{ mthaml_attributes([['a', (1 + 1)]], 'html5', 'UTF-8', false)|raw }}>
    bar
  </q>
</p>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test