Closed NekoOs closed 7 years ago
Hi, your first code can work with js option: "expressionLanguage" => "js" added on the Pug constructor array. The codes on your paragraph Error cases are not supposed to work neither in the last version of Pugjs nor in pug-php. Else parentheses are not necessary and if statements can contain PHP code.
Thanks @kylekatarnls!
Content into index.php
Content into vista.pug
Error case
Succefull case
How can I make a comparison of variables without using php variables.
PD: Sorry the semantics but I do not speak English