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