Skip to content

Commit

Permalink
Add more template output information
Browse files Browse the repository at this point in the history
  • Loading branch information
casid committed May 19, 2024
1 parent 3ad76aa commit 08470e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ If your model class would look like this:

The output of the above template would be `Hello jte!`.

`${}` can be used to output the following types:

- `String`
- `Enum`
- `boolean`, `byte`, `short`, `int`, `long`, `float`, `double`, `char`
- Any class implementing `gg.jte.Content`

For security reasons there is no automatic `.toString()` conversion. Unsupported types produce a compilation error.

## Control structures

jte provides convenient shortcuts for common Java control structures, such as conditional statements and loops. These shortcuts provide a clean, terse way of working with control structures while remaining familiar to their Java counterparts.
Expand Down

0 comments on commit 08470e3

Please sign in to comment.