jte
Secure and speedy templates for Java and Kotlin. (by casid)
Thymeleaf
Thymeleaf is a modern server-side Java template engine for both web and standalone environments. (by thymeleaf)
jte | Thymeleaf | |
---|---|---|
31 | 21 | |
707 | 2,727 | |
- | 0.6% | |
8.8 | 5.4 | |
7 days ago | about 1 month ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jte
Posts with mentions or reviews of jte.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-10.
-
Templ: A language for writing HTML user interfaces in Go
For java/Kotlin, we are using JTE (https://jte.gg/#getting-started), pretty nice build tooling and IDE support to generate pre-compiled templates without additional code generation steps.
-
Announcing jte 3 - The Java Template Engine
Thanks for the hints! I created an issue for this: https://github.com/casid/jte/issues/240
-
Opened a ticket to jetbrains around tailwind support for JTE
JTE is a template engine for Java/Kotlin that I've started using recently. While trying to integrate tailwind I've run into issue with the (notorious) IntelliJ tailwind plugin. I've opened a ticket with JetBrains to ask that they add *.kte and *.jte file extensions to the tailwind plugin. If anyone else is keen for this change to be made, please upvote the linked ticket.
-
Project YALA - MongoDB Atlas Hackathon 2022 on DEV submission
Instead of using commonly used frameworks (like Spring Framework) I preffered to use something that is small and doesn't have "magic" in it. So I've chosen Javalin as a simple web framework, added MongoDB client libraries nad jte as template engine. To show that simple and clean looking apps doesn't need any big JS libraries I've selected chota - one of micro CSS frameworks.
- Web app in Java with Template Engine
-
Quick preview of jstachio a type safe java mustache templating engine
Because the code is generated Java code the runtime dependency is minimal and I plan on offering a zero dependency runtime version. I believe to have one of the smallest footprints of Java templating languages and is as fast as jte.
- Using java for the front-end of a web app in 2022
-
Rapidly develop CRUD apps (and Apache Isis experience?)
A microframework or Spring Boot + Template Engine such as jte or Thymeleaf gets you far.
- jte 2
-
Java SSR / web ui
I can highly recommend https://github.com/casid/jte
Thymeleaf
Posts with mentions or reviews of Thymeleaf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-24.
-
A Ride Through Optimising Legacy Spring Boot Services For High Throughput
Thymeleaf is used for serving frontend resources in this service, and it has cache enabled for static resources based on content. Something like the following properties:
-
Mastering Java Spring Framework: A Comprehensive Guide
xmlns:th="http://www.thymeleaf.org"> th:text="${title}">Product List th:each="product : ${products}" th:text="${product.name}">
- Spring Boot Thymeleaf File Upload example
-
Authentication for Spring Boot App with Authgear and OAuth2
*with Thymeleaf and SpringSecurity 6 to build a regular web application and it uses Authgear to **add authentication with the login page
-
Spring Security and OpenID Connect
Finally, we will create a HomeController to make the test effect more visually significant by controlling the content displayed on the page. We will display different information according to the role and use the thymeleaf template engine to render.
-
Spring Security OAuth2 Login
Finally, we create the Controller class and use the thymeleaf template engine to build the home page information. Different permission information sees different results in the home page list.
-
Spring Security persistent OAuth2 client
Configure all requests here to require authentication and authorization, provide Form form authentication methods, and customize the login template through thymeleaf. The code here is not within the scope of this article, and the following will not Show specific details.
-
Customize the OAuth2 authorization consent page
Then let's define the html page, here we use the thymeleaf template engine:
-
Can you do web development with java?
You can also use SSR (Server Sided Rendering) to generate the front end before it is returned, reducing the need for JS. Thymeleaf is an example of that.
-
Can I use Java to build a website?
You can use Java for Backend and Frontend. A relative new kid on the block for Frontend is Qute. The general keyword you are searching for is Java Templating Engine. Specific examples would be Thymeleaf or FreeMarker. There are some framework, which offer a lot more than templating like Vaadin or Wicket. Some are just specifications like Jakarta Faces with some of their implementations MyFaces or Mojarra.
What are some alternatives?
When comparing jte and Thymeleaf you can also consider the following projects:
Rocker - Java 8 optimized, memory efficient, speedy template engine producing statically typed, plain java objects
FreeMarker - Apache Freemarker
jte-spring-boot-demo - A simple demo of jte running with Spring Boot.
Apache Velocity - Mirror of Apache Velocity Engine
stringtemplate4 - StringTemplate 4
Handlebars.java - Logic-less and semantic Mustache templates with Java
Pebble - Java Template Engine
Mustache.java - Implementation of mustache.js for Java
htmx - </> htmx - high power tools for HTML
j2html - Java to HTML generator. Enjoy typesafe HTML generation.
Jtwig Project - Java modern template engine