Skip to content

A Solr response writer to use the Thymeleaf templating engine for HTML templating.

License

Notifications You must be signed in to change notification settings

solr-cool/solr-thymeleaf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solr-thymeleaf

continuous integration Maven Central

♻️ this is the official and maintained fork of the original @shopping24 repository maintained by solr.cool.

A Solr component to use the Thymeleaf template engine.

Installing the component

Configuring template resolving

Pass the template to render in the tl.template request parameter. You can configure Thymeleaf template resolving:

<queryResponseWriter name="html" class="cool.solr.response.ThymeleafResponseWriter">
     <str name="tl.templateMode">XHTML</str>
     <str name="tl.locale">de_de</str>
     <str name="tl.cacheTTLMs">3600000</str>
     <str name="tl.prefix">${solr.core.config}/templates/</str>
     <str name="tl.suffix">.html</str>
</queryResponseWriter>

The template context is prefilled with the current request, the request params and a solr response.

Building the project

This should install the current version into your local repository

$ ./mvn clean verify

License

This project is licensed under the Apache License, Version 2.

About

A Solr response writer to use the Thymeleaf templating engine for HTML templating.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Java 100.0%