Static imports are supported in the Template Parser Context however there is no way for the user to use them for now (they are only used internally to expose various static java methods).
This would expose STATIC_FIELD and staticMethod in the template.
This could be useful when configuration static properties must be used in the template (dimensions, color values...), or to use static util methods in the templates.
Static imports are supported in the Template Parser Context however there is no way for the user to use them for now (they are only used internally to expose various static java methods).
It would be nice to be able to do:
This would expose
STATIC_FIELD
andstaticMethod
in the template.This could be useful when configuration static properties must be used in the template (dimensions, color values...), or to use static util methods in the templates.