UNPKG

wml-scaffold

Version:

Generate file and folder structure from wml file

35 lines (29 loc) 531 B
import twig from './$name.html.twig'; export default { title: 'Components/$Folder/$Name', parameters: { componentSource: { code: `{% include 'components/$folder/$name/$name.html.twig' with { props: { $code } } %}`, language: 'twig' } }, argTypes: { $argTypes } }; export const Default = ({ $args }) => { //if( window.requireReload() ) // return ''; return twig({ props:{ $props } }); } Default.args = { $content }