Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load templates via a directory or files #509

Open
sawa-ko opened this issue Jan 10, 2025 · 0 comments
Open

Load templates via a directory or files #509

sawa-ko opened this issue Jan 10, 2025 · 0 comments

Comments

@sawa-ko
Copy link

sawa-ko commented Jan 10, 2025

Currently I see that the templates are loaded through a string, which I think is not ideal in the case of having many templates as they will be many lines of String code, and I think having a function to register the templates based on a directory or specifying a specific file would be better. Since you could also use the mjml extensions in the code editor to edit them and so on.

The template names could be the file name, and it would be great if it could be done recursively per directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant