crystal-modulify
v0.2.0
Published
crystal-modulify ============
Downloads
1
Readme
crystal-modulify
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 -->"});