-
Notifications
You must be signed in to change notification settings - Fork 23
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
The suffix property SpringTemplateLoader doesn't work #21
Comments
Don't know that I use is right? |
SpringTemplateLoader‘s code:
If basePath is not null,replace the name‘s suffix |
I also have the same problem. Since Jade is now known as Pug I thought I should change the suffix to ".pug". So I changed the name of my template file to home.pug and changed my configuration as follows (I'm using GroovyConfig instead of XML or JavaConfig): @bean The Controller class that is supposed to load the page has this method: @RequestMapping('/home') When I attempt to load 'home' in my browser (using "http://localhost:8080/home) I get the following stackdump in my log: ERROR [de.neuland.jade4j.spring.view.JadeView] - <failed to render template [home] java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/views/home.jade] It appears to be ignoring the value of the 'suffix' field of de.neuland.jade4j.spring.template.SpringTemplateLoader. All of this worked great before I tried to change the suffix. I have forked the source code and am trying to troubleshoot. |
There is also a thread about this in the Jade4J issues but I'm thinking it might be better to fix this in a new project called pug4j based on jade4j which hasn't been created yet (see thread about need for pug4j project). |
hi;
The suffix property of SpringTemplateLoader doesn't work,Configuration follows:
Controller follows:
The View Name must be added “.pug”
I hope so:
I'm using the following jar files:
Can anyone please help me?
The text was updated successfully, but these errors were encountered: