Closed dzikoysk closed 5 months ago
Thanks for opening this issue, making these edits will help new users get started faster.
I'll do it.
Commit: https://github.com/javalin/javalin.github.io/commit/73ff0d07212abd98131f8895d2951041d20795a8 New docs: https://javalin.io/plugins/rendering
@jbuhacoff @dzikoysk how does this look?
Current documentation is outdated and a bit confusing for users:
JavalinFreemarker.init
instead ofcfg.fileRenderer(new JavalinFreemarker()
JavalinRenderer
class:JavalinRenderer.register
JavlinMustache
, it'll also process other file extensions, because we have just one global FileRenderer. It might be a good idea to clarify this + mention, that FileRenderer can be implemented by user to e.g. support 2 template engines at the same time.