jstransformer-reshape
reshape support for JSTransformers.
Installation
npm install jstransformer-reshape
Note: Reshape requires node v6 or above.
API
const reshape = const customElements = const expressions = const text = `<my-component> <my-text class="text">{{ name }}</my-text></my-component>` const locals = name: 'caleb' // pass an array of pluginsconst options = plugins: reshape//=> '<div class="my-component">\n<div class="text my-text">Caleb</div>\n</div>' // or pass an object of plugins and settingsconst options2 = plugins: customElements: defaultTag: 'span' expressions: {} reshape//=> '<span class="my-component">\n<span class="text my-text">Caleb</span>\n</span>'
License
MIT