batiste / pug-vdom

PUG template to HyperScript Virtual DOM
MIT License
18 stars 6 forks source link

pug syntax inside inline js doesn't work #36

Closed albb0920 closed 5 years ago

albb0920 commented 5 years ago

Hi

It seems like pug code inside inline js is not supported by pug-vdom. These are supported by pug. (ref https://github.com/pugjs/pug/issues/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}`