hyperVue
Use tagged template string in Vue.js
Original Project vs Fork
This project is a fork of egoist's
vue-html.
In egoist's vue-html, the key logic is bound to Vue (using Vue.use(HTML)
).
In this version, vue-html is a function which takes in createElement.
Install
$ npm install --save hypervue
Usage
el: '#app' data: count: 0 methods: { thiscount++ } { const html = ; return hyperVue` <button onClick=></button> ` }
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D