Package io.quarkus.qute.runtime
Class QuteConfig
- java.lang.Object
-
- io.quarkus.qute.runtime.QuteConfig
-
@ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED) public class QuteConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,String>contentTypesThe additional map of suffixes to content types.List<String>suffixesThe list of suffixes used when attempting to locate a template file.Optional<List<String>>typeCheckExcludesThe list of exclude rules used to intentionally ignore some parts of an expression when performing type-safe validation.
-
Constructor Summary
Constructors Constructor Description QuteConfig()
-
-
-
Field Detail
-
suffixes
@ConfigItem(defaultValue="qute.html,qute.txt,html,txt") public List<String> suffixes
The list of suffixes used when attempting to locate a template file. By default, `engine.getTemplate("foo")` would result in several lookups: `foo`, `foo.html`, `foo.txt`, etc.
-
contentTypes
@ConfigItem public Map<String,String> contentTypes
The additional map of suffixes to content types. This map is used when working with template variants. By default, theURLConnection.getFileNameMap()is used to determine the content type of a template file.
-
typeCheckExcludes
@ConfigItem public Optional<List<String>> typeCheckExcludes
The list of exclude rules used to intentionally ignore some parts of an expression when performing type-safe validation.An element value must have at least two parts separated by dot. The last part is used to match the property/method name. The prepended parts are used to match the class name. The value
*can be used to match any name.Examples:
org.acme.Foo.name- exclude the property/methodnameon theorg.acme.Fooclassorg.acme.Foo.*- exclude any property/method on theorg.acme.Fooclass*.age- exlude the property/methodageon any class
-
-