Sha256: 3679ee1ea88c6343effe5aed68ead5328bec78aa14e8972235739020d66af3e9
Contents?: true
Size: 1.35 KB
Versions: 10
Compression:
Stored size: 1.35 KB
Contents
--FILE-- <?php $env = new MtHaml\Environment('php'); 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" <?php echo htmlspecialchars(test,ENT_QUOTES,'UTF-8'); ?>></p> <p <?php echo htmlspecialchars(test,ENT_QUOTES,'UTF-8'); ?> foo="bar"></p> <p <?php echo htmlspecialchars(test,ENT_QUOTES,'UTF-8'); ?>></p> <p bar="baz" <?php echo htmlspecialchars(test,ENT_QUOTES,'UTF-8'); ?> foo="bar"></p> <p <?php echo MtHaml\Runtime::renderAttributes(array(array('bar', 'baz'), MtHaml\Runtime\AttributeInterpolation::create(test), array('class', ('abc ' . def))), 'html5', 'UTF-8'); ?>></p> <p foo="bar" <?php echo htmlspecialchars(test,ENT_QUOTES,'UTF-8'); ?>></p> <p <?php echo htmlspecialchars(test,ENT_QUOTES,'UTF-8'); ?> foo="bar"></p> <p <?php echo htmlspecialchars(test,ENT_QUOTES,'UTF-8'); ?>></p> <p bar="baz" <?php echo htmlspecialchars(test,ENT_QUOTES,'UTF-8'); ?> foo="bar"></p> <p <?php echo MtHaml\Runtime::renderAttributes(array(array('bar', 'baz'), MtHaml\Runtime\AttributeInterpolation::create(test), array('class', ('abc ' . def))), 'html5', 'UTF-8'); ?>></p>
Version data entries
10 entries across 10 versions & 1 rubygems