Skip to content

Commit

Permalink
Tweak docs
Browse files Browse the repository at this point in the history
Fix some Kotlin code, correct an indent level, and provide some more info on how model code generation replaces precompiled templates.
  • Loading branch information
MariusVolkhart committed Jan 8, 2024
1 parent 0c83398 commit 2dc2fd5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/binary-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Example usage with `HttpServletResponse`:
=== "Kotlin"

```kotlin linenums="1"
val output = new Utf8ByteOutput()
val output = Utf8ByteOutput()
templateEngine.render(template, page, output)

response.contentLength = output.contentLength
Expand Down
4 changes: 4 additions & 0 deletions docs/jte-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: A generator extension for jte which creates a typesafe facade for r

jte-models is a generator extension for jte which creates a typesafe facade for rendering templates.

!!! note

This replaces the process of [precompiling templates](pre-compiling.md).

## Setup

To use jte-models, set up your build script to include one of these:
Expand Down
2 changes: 1 addition & 1 deletion docs/pre-compiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ TemplateEngine templateEngine = TemplateEngine.createPrecompiled(ContentType.Htm

This way, the templates are loaded from the application class loader. See [this issue](https://github.com/casid/jte/issues/62) for additional information.

### Using the application class loader
## Using the application class loader

!!! info "Version note"

Expand Down

0 comments on commit 2dc2fd5

Please sign in to comment.