All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.qute.runtime.QuteRuntimeConfig Maven / Gradle / Ivy

package io.quarkus.qute.runtime;

import io.quarkus.qute.TemplateException;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

@ConfigRoot(name = "qute", phase = ConfigPhase.RUN_TIME)
public class QuteRuntimeConfig {

    /**
     * The strategy used if a property is not found when evaluating a standalone expression at runtime.
     * 

* This strategy is not used when evaluating an expression that is used in a section parameter, e.g. * {#if foo.name}. In such case, it's the responsibility of the section to handle this situation appropriately. */ @ConfigItem(defaultValue = "default") public PropertyNotFoundStrategy propertyNotFoundStrategy; /** * 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. */ @ConfigItem(defaultValue = "true") public boolean removeStandaloneLines; public enum PropertyNotFoundStrategy { /** * Output the {@code NOT_FOUND} constant. */ DEFAULT, /** * No operation - no output. */ NOOP, /** * Throw a {@link TemplateException}. */ THROW_EXCEPTION, /** * Output the original expression string, e.g. {foo.name}. */ OUTPUT_ORIGINAL } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy