Skip to content

Commit

Permalink
Use js-phpize by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Oct 3, 2017
1 parent 974e0b0 commit 2e29c26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/basic.pug
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//- set from php controller
- $prev = $color
- prev = color

//- set in the jade template
- $color = 'red'
- color = 'red'

head
:less
Expand Down
4 changes: 3 additions & 1 deletion tests/examples.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2e29c26

Please sign in to comment.