ninjaframework / ninja

Ninja is a full stack web framework for Java. Rock solid, fast and super productive.
http://www.ninjaframework.org
Apache License 2.0
1.91k stars 521 forks source link

make templates dir configurable #713

Open asolntsev opened 3 years ago

asolntsev commented 3 years ago

Currently templates dir is hardcoded: src/main/java/. See ninja.template.TemplateEngineFreemarker#srcDir.

Though, a best practice in Java project is storing such resources in src/main/resources.

I suggest at least to make it configurable.

raphaelbauer commented 3 years ago

Sounds like a good idea :) PRs are really welcome. Let us know if we can help in any way!

asolntsev commented 3 years ago

yes, I will prepare a PR.