Skip to content

eplouhinec/thymeleaf-aggregator-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

thymeleaf-aggregator-poc

A webapp made with Spring Boot using Thymeleaf and Thymeleaf Layout Dialect.

The goal is to allow the use of a layout resource not localized in the classpath (like usual): on an HTTP server.

How it works

  • The remote HTTP server configured is the webserver of IntelliJ IDEA in this URL: http://localhost:63342/thymeleaf-aggregator-poc/src/main/resources/cms/layout.html
  • An other version of the layout is available in classpath, as a fallback, in the folder /src/main/resources/templates: classpath:/src/main/resources/templates/cms/layout.html.

Run it

  • Go to http://localhost:8080/decorate
  • If page title is "This page uses the HTTP layout": it found the layout on http://localhost:63342/thymeleaf-aggregator-poc/src/main/resources/cms/layout.html.
  • If page title is "This page uses the classpath layout": it does not found the layout on http://localhost:63342/thymeleaf-aggregator-poc/src/main/resources/cms/layout.html and used classpath:/src/main/resources/templates/cms/layout.html instead.

About

Content aggregation with Thymeleaf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published