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

Compile only prototype in dev mode #111

Open
raderio opened this issue Aug 1, 2016 · 0 comments
Open

Compile only prototype in dev mode #111

raderio opened this issue Aug 1, 2016 · 0 comments

Comments

@raderio
Copy link

raderio commented Aug 1, 2016

Hi.
Compilation time of Scala is slow, so it is for twirl.
It could be improved if in dev mode if it will be parsed/generated only function prototype(name and parameters) and imports, the body of function will be compiled only for specific page in runtime when is loaded, so it will compile only a few templates and it will be fast and in controller the call of template will be safe.
It could be added as an option.

In prod mode should be the same as it is now.

Thanks.

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

No branches or pull requests

2 participants