Spring Boot + Kotlin type safe template rendering
Kotlin
Permalink
Failed to load latest commit information.
gradle/wrapper Initial commit Nov 8, 2016
src Fix a typo Dec 27, 2016
.gitignore Initial commit Nov 8, 2016
README.md Polishing Dec 27, 2016
build.gradle Exclude some uneeded kotlin-script-util dependencies Dec 31, 2016
gradlew Initial commit Nov 8, 2016
gradlew.bat Initial commit Nov 8, 2016

README.md

Spring Boot + Kotlin type safe template rendering

These templates look like:

import io.spring.demo.User
import io.spring.demo.joinToLine

"""
${include("header", bindings)}
<h1>Title : $title</h1>
<ul>
    ${(users as List<User>).joinToLine{ "<li>User ${it.firstname} ${it.lastname}</li>" }}
</ul>
${include("footer")}
"""

Feel free to send pull requests to improve it!