Sha256: 70f6012d5d9f6c1bdca98ba386a2cc242f151e671142522fb15821c85f25e053

Contents?: true

Size: 607 Bytes

Versions: 10

Compression:

Stored size: 607 Bytes

Contents

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

--EXPECT--
<p <?php echo MtHaml\Runtime::renderAttributes(array(array('class', MtHaml\Runtime::renderObjectRefClass($a)), array('id', MtHaml\Runtime::renderObjectRefId($a))), 'html5', 'UTF-8', false); ?>></p>
<p <?php echo MtHaml\Runtime::renderAttributes(array(array('class', MtHaml\Runtime::renderObjectRefClass($a, ("b"))), array('id', MtHaml\Runtime::renderObjectRefId($a, ("b")))), 'html5', 'UTF-8', false); ?>></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_php.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test