Sha256: d6eb3d668c55e2707730823840298e12debc5f50d0b7c38a12cf5d89f030659d

Contents?: true

Size: 713 Bytes

Versions: 10

Compression:

Stored size: 713 Bytes

Contents

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

--HAML--
#php
  :php
    echo $a;
  :php
    foreach (array(#{foo}) as $item) {
    }
#twig
  :twig
    {{ foo|filter }}
    {% for i in 1..5 %}
        {{ "- \#{i}" }}
    {% endfor %}
  :twig
    {{ #{foo}|filter }}
--EXPECT--
<div id="php">
  {% filter mthaml_php %}echo $a;
{% endfilter %}
  {% filter mthaml_php %}foreach (array({% line 5 %}{{ foo }}) as $item) {
}
{% endfilter %}
</div>
<div id="twig">
  {{ foo|filter }}
  {% for i in 1..5 %}
      {{ "- #{i}" }}
  {% endfor %}
  {% filter mthaml_twig %}{{ '{{' }} {{ foo }}|filter }}
{% endfilter %}
</div>

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/twig_filters.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test