If use Play2, and sample application of japid42, you will see that it holds japid's view under the following default structure:
{your_app}/japidroot/japidview
How to change it to: {your_app}/app/views ?
(to standard/classic play's structure)
If use Play2, and sample application of japid42, you will see that it holds japid's view under the following default structure:
{your_app}/japidroot/japidview
How to change it to: {your_app}/app/views ?
(to standard/classic play's structure)
Ok. I've figured this out.
public class Global extends JapidRenderer {
@Override
public void onStartJapid() {
setTemplateRoot("app");
...
This configuration says japid that "app" folder is root where japid scripts located, then it tries to find/look-up for 'japidviews' folder.
So, what I need to do:
- create my rapid templates (html files) in app/rapidviews
- let japd knows where this 'rapidviews' is located, using setTemplateRoot(..) method
It is OK to me to have "japidviews" but but "views". At least it is in "app" directory but not outside.