-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
hi;
The suffix property of SpringTemplateLoader doesn't work,Configuration follows:
<bean id="templateLoader" class="de.neuland.jade4j.spring.template.SpringTemplateLoader">
<property name="basePath" value="/WEB-INF/views/" />
<property name="suffix" value=".pug"/>
</bean>
Controller follows:
@RequestMapping(value = "/jade.json", method = RequestMethod.GET)
public ModelAndView test(ModelAndView model) {
model.setViewName("pages/index.pug");
return model;
}
The View Name must be added “.pug”
I hope so:
@RequestMapping(value = "/jade.json", method = RequestMethod.GET)
public ModelAndView test(ModelAndView model) {
model.setViewName("pages/index");
return model;
}
I'm using the following jar files:
<dependency>
<groupId>de.neuland-bfi</groupId>
<artifactId>spring-jade4j</artifactId>
<version>1.2.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/de.neuland-bfi/jade4j -->
<dependency>
<groupId>de.neuland-bfi</groupId>
<artifactId>jade4j</artifactId>
<version>1.2.5</version>
</dependency>
Can anyone please help me?
jackcholt
Metadata
Metadata
Assignees
Labels
No labels