dust2jsx
Create JSX code from Dust template
{@Logo name="foo" shadow="true"/} {?title} {title}{/title} {#images} {/images}
➡️
<header> <Logo name="foo" shadow="true"/></header> title ? <h1 className="title">title</h1> : null images
Usage
const dust2jsx = ; ;// Outputs: <input type="checkbox" {checked ? 'checked' : ''}/>
Parameters
externals
(Boolean)
Outputs array of found referenced variables or Components. Optional. Default: false
;// Outputs: ['Logo', 'Foo']