Package io.quarkus.qute
Annotation Interface TemplateExtension.TemplateAttribute
- Enclosing class:
- TemplateExtension
Used to annotate a template extension method parameter that should be obtained via
TemplateInstance.getAttribute(String). The parameter type must be Object.
@TemplateExtension
static BigDecimal discountedPrice(Item item, @TemplateAttribute Object locale) {
// this method matches {item.discountedPrice}
// ... do some locale-aware formatting
}