IMPORTANT: This annotation only works in a fully integrated environment; such as a Quarkus application.
This annotation can be used to specify the contents for a type-safe template, i.e. for a method of a class annotated withCheckedTemplate or a Java record that implements TemplateInstance.-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueThe contents. -
suffix
String suffixThe suffix is used to determine the content type of a template. This is useful when working with template variants.By default, the
txtvalue, which corresponds totext/plain, is used. For thetext/htmlcontent type thehtmlsuffix should be used.- Default:
"txt"
-