Sha256: 669f0990d5225b246539662624c1b9a09928da0009e37158ff4afa90e3099e92

Contents?: true

Size: 722 Bytes

Versions: 10

Compression:

Stored size: 722 Bytes

Contents

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

--HAML--
%p(foo bar="baz")
%p(foo)
%p(bar="baz" foo)
%p(foo class=baz)
--EXPECT--
<p <?php echo MtHaml\Runtime::renderAttributes(array(array('foo', TRUE), array('bar', 'baz')), 'html5', 'UTF-8', false); ?>></p>
<p <?php echo MtHaml\Runtime::renderAttributes(array(array('foo', TRUE)), 'html5', 'UTF-8', false); ?>></p>
<p <?php echo MtHaml\Runtime::renderAttributes(array(array('bar', 'baz'), array('foo', TRUE)), 'html5', 'UTF-8', false); ?>></p>
<p <?php echo MtHaml\Runtime::renderAttributes(array(array('foo', TRUE), array('class', baz)), 'html5', 'UTF-8', false); ?>></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/boolean_attr_php.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test