Package io.quarkus.qute.runtime
Class QuteRuntimeConfig
java.lang.Object
io.quarkus.qute.runtime.QuteRuntimeConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe strategy used when a standalone expression evaluates to a "not found" value at runtime and thequarkus.qute.strict-renderingconfig property is set tofalsebooleanSpecify whether the parser should remove standalone lines from the output.booleanIf set totruethen any expression that is evaluated to aResults.NotFoundvalue will always result in aTemplateExceptionand the rendering is aborted.longThe global rendering timeout in milliseconds.booleanIf set totruethen the timeout should also be used for asynchronous rendering methods, such asTemplateInstance.createUni()andTemplateInstance.renderAsync(). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
propertyNotFoundStrategy
The strategy used when a standalone expression evaluates to a "not found" value at runtime and thequarkus.qute.strict-renderingconfig property is set tofalseThis strategy is never used when evaluating section parameters, e.g.
{#if foo.name}. In such case, it's the responsibility of the section to handle this situation appropriately.By default, the
NOT_FOUNDconstant is written to the output. However, in the development mode theQuteRuntimeConfig.PropertyNotFoundStrategy.THROW_EXCEPTIONis used by default, i.e. when the strategy is not specified. -
removeStandaloneLines
Specify whether the parser should remove standalone lines from the output. A standalone line is a line that contains at least one section tag, parameter declaration, or comment but no expression and no non-whitespace character. -
strictRendering
If set totruethen any expression that is evaluated to aResults.NotFoundvalue will always result in aTemplateExceptionand the rendering is aborted.Note that the
quarkus.qute.property-not-found-strategyconfig property is completely ignored if strict rendering is enabled. -
timeout
The global rendering timeout in milliseconds. It is used if notimeouttemplate instance attribute is set. -
useAsyncTimeout
If set totruethen the timeout should also be used for asynchronous rendering methods, such asTemplateInstance.createUni()andTemplateInstance.renderAsync().
-
-
Constructor Details
-
QuteRuntimeConfig
public QuteRuntimeConfig()
-