Uses of Class
org.apache.juneau.commons.template.TemplateResolver.Builder
Packages that use TemplateResolver.Builder
Package
Description
Safe, structured templates for template authors who are less trusted than the application.
-
Uses of TemplateResolver.Builder in org.apache.juneau.commons.template
Methods in org.apache.juneau.commons.template that return TemplateResolver.BuilderModifier and TypeMethodDescriptionTemplateResolver.Builder.allowFunctions(String... patterns) Adds function-name globs to the default allowlist (SafeFunctions.patterns()).TemplateResolver.Builder.allowOnlyFunctions(String... patterns) Replaces the default function allowlist (SafeFunctions.patterns()) with exactly these globs.static TemplateResolver.BuilderTemplateResolver.create()Creates a builder.TemplateResolver.Builder.destination(Destination value) Sets the default value encoder and structure renderer from a destination preset.TemplateResolver.Builder.functions(VarFunction... values) Registers additional functions.TemplateResolver.Builder.maxCollectionSize(int value) Sets the maximum number of elements one expression may iterate, and the maximum per container when formatting.TemplateResolver.Builder.strict(boolean value) Enables strict mode: an unknown or denied function, or an expression error, throws instead of being emitted as written.TemplateResolver.Builder.structureRenderer(StructureRenderer value) Sets how lists, blocks and tables are rendered.Registers additional vars.