diff --git a/examples/basic.pug b/examples/basic.pug index f3fb6ff..cbc960d 100644 --- a/examples/basic.pug +++ b/examples/basic.pug @@ -1,8 +1,8 @@ //- set from php controller -- $prev = $color +- prev = color //- set in the jade template -- $color = 'red' +- color = 'red' head :less diff --git a/tests/examples.php b/tests/examples.php index 8bd116c..2383c97 100644 --- a/tests/examples.php +++ b/tests/examples.php @@ -39,7 +39,9 @@ protected function simplifyText($html) */ public function testPugGeneration($htmlFile, $pugFile) { - $pug = new Pug(); + $pug = new Pug(array( + 'expressionLanguage' => 'js', + )); $renderFile = method_exists($pug, 'renderFile') ? array($pug, 'renderFile') : array($pug, 'render');