From 08470e3006228926cdfb3c7fc76bb6baa35953bb Mon Sep 17 00:00:00 2001 From: Andreas Hager Date: Sun, 19 May 2024 08:02:28 +0200 Subject: [PATCH] Add more template output information --- docs/syntax.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/syntax.md b/docs/syntax.md index 5a3b20f7..22dbd7a8 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -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.