Interface QuteRuntimeConfig


@ConfigRoot(phase=RUN_TIME) @ConfigMapping(prefix="quarkus.qute") public interface QuteRuntimeConfig
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The strategy used when a standalone expression evaluates to a "not found" value at runtime and the quarkus.qute.strict-rendering config property is set to false
    boolean
    Specify whether the parser should remove standalone lines from the output.
    boolean
    If set to true then any expression that is evaluated to a Results.NotFound value will always result in a TemplateException and the rendering is aborted.
    long
    The global rendering timeout in milliseconds.
    boolean
    If set to true then the timeout should also be used for asynchronous rendering methods, such as TemplateInstance.createUni() and TemplateInstance.renderAsync().
  • Method Details

    • propertyNotFoundStrategy

      The strategy used when a standalone expression evaluates to a "not found" value at runtime and the quarkus.qute.strict-rendering config property is set to false

      This 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_FOUND constant is written to the output. However, in the development mode the QuteRuntimeConfig.PropertyNotFoundStrategy.THROW_EXCEPTION is used by default, i.e. when the strategy is not specified.

    • removeStandaloneLines

      @WithDefault("true") boolean 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

      @WithDefault("true") boolean strictRendering()
      If set to true then any expression that is evaluated to a Results.NotFound value will always result in a TemplateException and the rendering is aborted.

      Note that the quarkus.qute.property-not-found-strategy config property is completely ignored if strict rendering is enabled.

    • timeout

      @WithDefault("10000") long timeout()
      The global rendering timeout in milliseconds. It is used if no timeout template instance attribute is set.
    • useAsyncTimeout

      @WithDefault("true") boolean useAsyncTimeout()
      If set to true then the timeout should also be used for asynchronous rendering methods, such as TemplateInstance.createUni() and TemplateInstance.renderAsync().