Closed jeromevdl closed 11 years ago
I'm using the following setup:
<bean class="org.springframework.web.servlet.view.mustache.MustacheViewResolver" id="viewResolver">
[...]
<property name="requestContextAttribute" value="rc"/>
</bean>
And then in the view:
href="{{rc.contextPath}}/css/style.css"
Thanks, that works !
When using spring or jstl, we can have static resources, for exemple :
Thus, I can include a css or js static file with the correct context path.
How to do this with this resolver. I was thinking of chaining resolvers but the "standard" InternalResourceViewResolver is an ending resolver, means i can't chain it with this one after...
Thanks