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

Add a precompile step #743

Open
terrablue opened this issue Sep 3, 2023 · 0 comments
Open

Add a precompile step #743

terrablue opened this issue Sep 3, 2023 · 0 comments

Comments

@terrablue
Copy link

Hi, is it possible to add a precompilation step like handlebars'? Such that it's possible to compile .ejs files once to JS, and then render them with different data.

As far as I can see, that would be pretty similar to ejs.compile, except that instead of constructing a function to be executed on the fly, the source code would be returned so that it can be saved to disk.

I don't mind submitting a PR if the idea is generally favored.

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