componentify
v0.0.3
Published
componentify ============
Downloads
4
Readme
componentify
transform html to a js object
<div data-bind="text: text"></div>
<script>
module.exports = {
text: ''
}
</script>
become
module.exports = {
text: ''
};if (!Array.isArray(module.exports)) { module.exports = [module.exports] }module.exports.push({__view:"<!-- component/control/text.html Begin --><div data-bind=\"text: text\"></div><!-- component/control/text.html End -->"});