spring boot pebble starter suffix prefix problem

45 views
Skip to first unread message

Batuhan Çağlayan

unread,
Oct 3, 2017, 3:05:27 AM10/3/17
to Pebble Templating Engine
Hello,

I ama trying to implement a mvc project (with spring boot). I added **pebble-spring-boot-starter** dependency to pom.  I set suffix as .twig in ViewResolver method. But template engine check .pebble files under templates/ path. In debug, i see pebbleatuoconfiguration class set default suffix and prefix values lastly. How can i stop this process.

Please help,
Batuhan Çağlayan

Batuhan Çağlayan

unread,
Oct 3, 2017, 3:44:32 AM10/3/17
to Pebble Templating Engine
Ok
boot load @ConfigurationProperties("pebble")  (PebbleProperties class), 

pebble.prefix:templates/
pebble.suffix:.twig
pebble.cache:false
pebble.encoding:UTF-8

added to application.properties file issue solved.

Thanks.
Reply all
Reply to author
Forward
0 new messages