From 60121d71aca37fd29eb60bce7b4d6ec26f4f955c Mon Sep 17 00:00:00 2001 From: KyleKatarn Date: Mon, 11 Dec 2017 22:58:57 +0100 Subject: [PATCH] Use PHP syntax for every engine --- tests/unit/config/main.php | 7 ------- tests/unit/views/main.pug | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/unit/config/main.php b/tests/unit/config/main.php index 5d77236..57b536e 100644 --- a/tests/unit/config/main.php +++ b/tests/unit/config/main.php @@ -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 = [ diff --git a/tests/unit/views/main.pug b/tests/unit/views/main.pug index 1a6d618..731ac93 100644 --- a/tests/unit/views/main.pug +++ b/tests/unit/views/main.pug @@ -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