componentify

0.0.3 • Public • Published

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 -->"});
 

Readme

Keywords

none

Package Sidebar

Install

npm i componentify

Weekly Downloads

1

Version

0.0.3

License

ISC

Last publish

Collaborators

  • youngjay