batiste / pug-vdom

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

HTML support fixes #29

Closed gryphonmyers closed 5 years ago

gryphonmyers commented 5 years ago

Previously, only single-element HTML strings were accepted.

Multi-line buffer HTML is still a problem. I will make an issue about that

batiste commented 5 years ago

When I run your branch locally, I get this kind of errors:

1) Compiler Generates well formed code: ~/projects/g-pug-vdom/src/runtime.js:47 return new vDomHtmlWidget(html.trim(), escape); ^

TypeError: html.trim is not a function

gryphonmyers commented 5 years ago

Really? hm, all tests passing on my end. Can you please make sure you have pulled the latest from my branch?