javalin / javalin-rendering

Artifact/module for server-side template/markdown rendering in Javalin: https://javalin.io/plugins/rendering
Apache License 2.0
11 stars 7 forks source link

TemplateUtil.model(...) function is missing #9

Closed RaniAgus closed 2 years ago

RaniAgus commented 2 years ago

Old model(...) method used for rendering templates has been removed in d14e9d792681c5592072a8d5ea5f092b554657f7 but still appears in the docs https://javalin.io/documentation#views-and-templates, was it removed by accident?

Maybe in Kotlin is not so necessary because we can use mapOf(...), but in Java it could be useful because Map.of(...) method doesn't accept nulls.

tipsy commented 2 years ago

Maybe in Kotlin is not so necessary because we can use mapOf(...), but in Java it could be useful because Map.of(...) method doesn't accept nulls.

That's absurd, didn't know that!