Page 1 of 1

JRebel & Thymeleaf: Refresh Layout without Jetty Restart

Posted: Sun Jul 21, 2013 10:31 am
by tperez
Hi, I've already set the Thymeleaf Template Resolver cache to false (See Below) and I have JRebel running. How do I see changes I make to templates without restarting Jetty? Thanks for your response.

Code: Select all

<bean id="blWebTemplateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver">
        <property name="prefix" value="/WEB-INF/templates/" />
        <property name="suffix" value=".html" />
        <property name="templateMode" value="HTML5" />
        <property name="cacheable" value="false"/>
        <property name="cacheTTLMs" value="${cache.page.templates.ttl}" />
        <property name="characterEncoding" value="UTF-8" />
    </bean>

Re: JRebel & Thymeleaf: Refresh Layout without Jetty Restart

Posted: Mon Jul 22, 2013 10:38 am
by cygnusxo
If i am not mistaken,

You still have to do a

Code: Select all

mvn package


So all your templates changes are put in the target dir by maven.