Closed stefanatg2 closed 7 years ago
Hi,
For the moment, you have to call the variables with the PHP dollar in such conditions:
if $entryopen and !$submitted
button
Hi, if entryopen and !submitted
is not possible because it's neither valid PHP nor valid JS, but you can now (by upgrading to the last version) use:
$pug = new Pug(array('expressionLanguage' => 'js'));
with:
if entryopen && !submitted
button
Or:
$pug = new Pug(array('expressionLanguage' => 'php'));
with:
if $entryopen and !$submitted
button
PS: &&
is also available in PHP mode.
&& statements not working properly. PugGlobals are used.
but nested
works.