https://github.com/unikueltd/thymeleaf-dialect-spring-boot-starter
Thymeleaf dialect for spring boot starter
https://github.com/unikueltd/thymeleaf-dialect-spring-boot-starter
dialect spring-boot spring-starter thymeleaf
Last synced: 3 months ago
JSON representation
Thymeleaf dialect for spring boot starter
- Host: GitHub
- URL: https://github.com/unikueltd/thymeleaf-dialect-spring-boot-starter
- Owner: unikueltd
- License: apache-2.0
- Created: 2024-06-28T15:31:37.000Z (almost 2 years ago)
- Default Branch: trunk
- Last Pushed: 2025-08-20T00:08:07.000Z (8 months ago)
- Last Synced: 2025-09-13T10:15:35.738Z (8 months ago)
- Topics: dialect, spring-boot, spring-starter, thymeleaf
- Language: Java
- Homepage: https://mvnrepository.com/artifact/com.yookue.springstarter/thymeleaf-dialect-spring-boot-starter
- Size: 47.9 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Notice: NOTICE.txt
Awesome Lists containing this project
README
# Thymeleaf Dialect Spring Boot Starter
Spring Boot application integrates `thymeleaf` dialects quickly, to boost your template development.
## Quickstart
- Import dependencies
```xml
cn.unikue.springstarter
thymeleaf-dialect-spring-boot-starter
LATEST
```
> By default, this starter will auto take effect, you can turn it off by `spring.thymeleaf-dialect.enabled = false`
- Configure Spring Boot `application.yml` with prefix `spring.thymeleaf-dialect` (**Optional**)
```yml
spring:
thymeleaf-dialect:
commons-lang-dialect:
processor-order: 0
commons-rng-dialect:
processor-order: 0
```
- This starter creates the following dialects with their associated artifacts:
| Dialect Class | Associated Artifact |
|------------------------------|---------------------------------------|
| CommonsLangExpressionDialect | org.apache.commons:commons-lang3 |
| CommonsRngExpressionDialect | org.apache.commons:commons-rng-simple |
- The `CommonsLangExpressionDialect` provides expressions with their associated classes as following:
| Expression | Associated Class |
|--------------------|--------------------------------------------|
| #arrayUtils | org.apache.commons.lang3.ArrayUtils |
| #booleanUtils | org.apache.commons.lang3.BooleanUtils |
| #charUtils | org.apache.commons.lang3.CharUtils |
| #numberUtils | org.apache.commons.lang3.math.NumberUtils |
| #objectUtils | org.apache.commons.lang3.ObjectUtils |
| #randomStringUtils | org.apache.commons.lang3.RandomStringUtils |
| #regexUtils | org.apache.commons.lang3.RegExUtils |
| #stringUtils | org.apache.commons.lang3.StringUtils |
| #systemUtils | org.apache.commons.lang3.SystemUtils |
- The `CommonsRngExpressionDialect` provides expressions with their associated classes as following:
| Expression | Associated Class |
|-----------------|------------------------------------------------|
| #randomProvider | org.apache.commons.rng.simple.RandomSource#JDK |
- Write your template code as following (take `img` as an example)
```
```
Ah, does it look cool?
## Document
- Github: https://github.com/unikueltd/thymeleaf-dialect-spring-boot-starter
- Thymeleaf github: https://github.com/thymeleaf/thymeleaf
- Thymeleaf homepage: https://thymeleaf.org
## Requirement
- jdk 17+
## License
This project is under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
See the `NOTICE.txt` file for required notices and attributions.
## Donation
You like this package? Then [donate to us](https://unikue.cn/donation) to support the development.
## Copyright
Beijing Unikue Network Technology Ltd.
## Website
- Unikue: https://unikue.cn