Skip to content

Instantly share code, notes, and snippets.

@MustCodeAl
Last active September 17, 2023 01:18
Show Gist options
  • Save MustCodeAl/859feeb8a0514cd8dd8221cf9306fd72 to your computer and use it in GitHub Desktop.
Save MustCodeAl/859feeb8a0514cd8dd8221cf9306fd72 to your computer and use it in GitHub Desktop.

template file for generate module from template to help with creating mui page components

for this to work you need the 3 following file template files imported with a ${name} variable in them : index.tsx styles.ts types.ts

{"template":{"name":"","isDir":true,"placeholders":{"name":"PageTemp"},"fileTemplates":{"index.tsx":"indexmuitemplate","styles.ts":"muistylestemplate","types.ts":"Typesmuitemplate"},"realChildren":[{"name":"${name}","isDir":true,"realChildren":[{"name":"index.tsx","isDir":false,"placeholders":{},"fileTemplates":{},"realChildren":[]},{"name":"styles.ts","isDir":false,"placeholders":{},"fileTemplates":{},"realChildren":[]},{"name":"types.ts","isDir":false,"placeholders":{},"fileTemplates":{},"realChildren":[]}]}]},"language":"java","templateName":"MuiPageTemplate","lowercaseDir":false,"capitalizeFile":false,"packageNameToDir":true,"enableApacheVelocity":true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment