batiste/pug-vdom

pug syntax inside inline js doesn't work

Closed this issue · 0 comments

Hi

It seems like pug code inside inline js is not supported by pug-vdom.
These are supported by pug. (ref pugjs/pug#1090 )
I can use while instead, but it would be quite nice if pug-vdom can support this.

- for(var i=0; i<5; i++) {
  p= `x = ${i}`
- }

or

- for(var i=0; i<5; i++)
  p= `x = ${i}`