Skip to content

Commit

Permalink
Use PHP syntax for every engine
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Dec 11, 2017
1 parent f80cf41 commit 60121d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions tests/unit/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
define('UES_TALE', class_exists('Tale\\Pug\\Renderer'));
$renderer = UES_TALE ? 'Tale\\Pug\\Renderer' : 'Pug\\Pug';
$filters = [];
if (!UES_TALE) {
file_put_contents($baseDir . '/views/main.pug', str_replace(
'variable',
'$variable',
file_get_contents($baseDir . '/views/main.pug')
));
}
if (!UES_TALE) {
include_once $baseDir . '/filters/EscapedFilter.php';
$filters = [
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/views/main.pug
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- variable = "test"
- $variable = "test"

div.test-block
p Hello world
p This is a #{variable}.
p This is a #{$variable}.
block additional

0 comments on commit 60121d7

Please sign in to comment.