Sha256: 0aa330b5a35bf2e581bce37fdaf1719f004ef7498aa5e7e359b504dd64f0d81e
Contents?: true
Size: 568 Bytes
Versions: 10
Compression:
Stored size: 568 Bytes
Contents
--FILE-- <?php $mthaml = new MtHaml\Environment('php', array('mthaml_variable' => '$mthaml')); $mthaml->addFilter('twig', new MtHaml\Filter\Twig(new Twig_Environment(new Twig_Loader_String()))); $source = $mthaml->compileString($parts['HAML'], "$file.haml"); $foo = '-foo-'; eval('?>'.$source); --HAML-- %body :twig <p>Ahoj</p> :twig <p>#{$foo}</p> :php echo "<strong>a</strong>\n"; :php $x = 5; echo "<strong>{$x}#{$foo}</strong>\n"; --EXPECT-- <body> <p>Ahoj</p> <p>-foo-</p> <strong>a</strong> <strong>5-foo-</strong> </body>
Version data entries
10 entries across 10 versions & 1 rubygems