Sha256: 298c4685e1b7a2dc748be0e1e590bfda9ece62ecf6c8ad82bb0b33e9e79c354c

Contents?: true

Size: 457 Bytes

Versions: 10

Compression:

Stored size: 457 Bytes

Contents

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

--HAML--

.foo.bar.baz

#id.foo.bar{"class" => "abc #{def}", "id" => "x"}

%p{:a => "b", :a => "c"}

--EXPECT--
<div class="foo bar baz"></div>
<div {% line 4 %}{{ mthaml_attributes([['class', ('foo' ~ ' ' ~ 'bar')], ['class', ('abc ' ~ def)], ['id', 'x']], 'html5', 'UTF-8', false)|raw }}></div>
<p a="c"></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/mergeattrs.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test