Hacker News new | past | comments | ask | show | jobs | submit login

Me too, so last week I created gulp-pug-hyperscript to compile Pug/Jade templates to Hyperscript [1].

In order to completely avoid JS in the markup, event binding must be done outside of the markup. I do this by using event delegation rather than binding directly to elements.

[1]: https://github.com/nextorigin/gulp-pug-hyperscript




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: