Thymeleaf Template Servlet

Standalone servlet for serving Thymeleaf templates.

License

License

Categories

Categories

Net Leaf Data Databases
GroupId

GroupId

nz.net.ultraq.thymeleaf
ArtifactId

ArtifactId

thymeleaf-template-servlet
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Thymeleaf Template Servlet
Standalone servlet for serving Thymeleaf templates.
Project URL

Project URL

http://www.ultraq.net.nz/programming/thymeleaf-template-servlet/
Source Code Management

Source Code Management

https://github.com/ultraq/thymeleaf-template-servlet

Download thymeleaf-template-servlet

How to add to project

<!-- https://jarcasting.com/artifacts/nz.net.ultraq.thymeleaf/thymeleaf-template-servlet/ -->
<dependency>
    <groupId>nz.net.ultraq.thymeleaf</groupId>
    <artifactId>thymeleaf-template-servlet</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/nz.net.ultraq.thymeleaf/thymeleaf-template-servlet/
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-template-servlet:1.0.0'
// https://jarcasting.com/artifacts/nz.net.ultraq.thymeleaf/thymeleaf-template-servlet/
implementation ("nz.net.ultraq.thymeleaf:thymeleaf-template-servlet:1.0.0")
'nz.net.ultraq.thymeleaf:thymeleaf-template-servlet:jar:1.0.0'
<dependency org="nz.net.ultraq.thymeleaf" name="thymeleaf-template-servlet" rev="1.0.0">
  <artifact name="thymeleaf-template-servlet" type="jar" />
</dependency>
@Grapes(
@Grab(group='nz.net.ultraq.thymeleaf', module='thymeleaf-template-servlet', version='1.0.0')
)
libraryDependencies += "nz.net.ultraq.thymeleaf" % "thymeleaf-template-servlet" % "1.0.0"
[nz.net.ultraq.thymeleaf/thymeleaf-template-servlet "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.codehaus.groovy : groovy jar 2.4.6
org.thymeleaf : thymeleaf jar 3.0.0.RELEASE

provided (1)

Group / Artifact Type Version
javax.servlet : javax.servlet-api jar 3.0.1

Project Modules

There are no modules declared in this project.

Thymeleaf Template Servlet

GitHub Release Maven Central License

Standalone servlet for serving Thymeleaf templates.

Mainly useful for testing or prototypes, this Servlet API 3.0 web fragment project will map all *.html requests to the Thymeleaf template of the same name.

Installation

Minimum of Java 7 and Thymeleaf 3 required.

Standalone distribution

Copy the JAR from the latest release bundle, placing it in the classpath of your application, or build the project from the source code here on GitHub.

For Maven and Maven-compatible dependency managers

Add a dependency to your project with the following co-ordinates:

  • GroupId: nz.net.ultraq.thymeleaf
  • ArtifactId: thymeleaf-template-servlet
  • Version: (as per the badges above)

Usage

Once your web app starts up (and provided you haven't disabled servlet annotations), then the template servlet will start mapping any requests for HTML files to templates of the same name in your project, eg: a request for hello.html will then cause the template servlet to respond with hello.html from your web app project folder.

Versions

Version
1.0.0