You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to be able to generate sub directories when using the --template-dir option. Currently this is not possible as in fastapi_code_generator/mainfor target in template_dir.rglob("*"): is used instead of for target in template_dir.rglob("*.jinja2"): and parsing a directory path to the code gen throws an error.
Furthermore it would be cool to automatically generate subpaths if they do not exist.
Example:
templates:
generated:
router.jinja2
main.jinja2
should result in main.py, generated/router.py
This would help me, structuring the generated code further.
I'd like to make a pull request for this, but would love some input first :)
The text was updated successfully, but these errors were encountered:
Hi.
I'd love to be able to generate sub directories when using the
--template-dir
option. Currently this is not possible as in fastapi_code_generator/mainfor target in template_dir.rglob("*"):
is used instead offor target in template_dir.rglob("*.jinja2"):
and parsing a directory path to the code gen throws an error.Furthermore it would be cool to automatically generate subpaths if they do not exist.
Example:
should result in
main.py
,generated/router.py
This would help me, structuring the generated code further.
I'd like to make a pull request for this, but would love some input first :)
The text was updated successfully, but these errors were encountered: