Closed keyurshah closed 7 years ago
Hi, the ES6 literal is not supported (and most of ES6 syntaxes), except with the 'pugjs' => true,
but this option will totally disable PHP engine (class instances are flattened, PHP functions are not available) and will use the native node engine.
But, you can user simple concatenation:
- var fruit = 'grapes'
p= 'start' + fruit + 'end'
Or with 'expressionLanguage' => 'php'
, you can use PHP interpolation:
- $fruit = 'grapes'
p= "start ${fruit} end"
ok, thanks, i'll stick with the simle concatenation. appreciate the hard work on this great project!
Hello,
I encountered an issue with the following code:
I expected to get:
But I actually get:
I'm trying to set a template literal per ES6
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
I am instantiating pug as follows
Thanks!