Sha256: fe38c6b2cbda4e6e2e01645ab7b04c9e3c0b1696213ff5ac58a4706660706f9b

Contents?: true

Size: 480 Bytes

Versions: 10

Compression:

Stored size: 480 Bytes

Contents

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

--EXPECT--
<p {{ mthaml_attributes([['class', mthaml_object_ref_class(a)], ['id', mthaml_object_ref_id(a)]], 'html5', 'UTF-8', false)|raw }}></p>
<p {{ mthaml_attributes([['class', mthaml_object_ref_class(a, ("b"))], ['id', mthaml_object_ref_id(a, ("b"))]], 'html5', 'UTF-8', false)|raw }}></p>
<p></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/object_ref_twig.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test