Sha256: b2b29efa8d6ec7a3558c7af922593c01090a36b3780458e41164cdd84c9e62f1
Contents?: true
Size: 989 Bytes
Versions: 10
Compression:
Stored size: 989 Bytes
Contents
--FILE-- <?php $env = new MtHaml\Environment('twig', array('enable_escaper' => false)); echo $env->compileString($parts['HAML'], "$file.haml"); --HAML-- %p(foo="bar" #{test}) %p(#{test} foo="bar") %p(#{test}) %p(bar="baz" #{test} foo="bar") %p(bar="baz" #{test} class="abc #{def}") %p{:foo=>"bar", #{test}} %p{#{test}, :foo=>"bar"} %p{#{test}} %p{:bar=>"baz", #{test}, :foo=>"bar"} %p{:bar=>"baz", #{test}, :class=>"abc #{def}"} --EXPECT-- <p foo="bar" {% line 2 %}{{ test }}></p> <p {{ test }} foo="bar"></p> <p {{ test }}></p> <p bar="baz" {{ test }} foo="bar"></p> <p {{ mthaml_attributes([['bar', 'baz'], mthaml_attribute_interpolation(test), ['class', ('abc ' ~ def)]], 'html5', 'UTF-8', false)|raw }}></p> <p foo="bar" {% line 8 %}{{ test }}></p> <p {{ test }} foo="bar"></p> <p {{ test }}></p> <p bar="baz" {{ test }} foo="bar"></p> <p {{ mthaml_attributes([['bar', 'baz'], mthaml_attribute_interpolation(test), ['class', ('abc ' ~ def)]], 'html5', 'UTF-8', false)|raw }}></p>
Version data entries
10 entries across 10 versions & 1 rubygems