Skip to Content
PureHTMLdocs

Constant Config

Return static values independent of HTML content.

Overview

A Constant Configuration specifies a static value that is returned directly without querying the DOM.

This is especially powerful when used as a fallback or default case inside a Union Config, analogous to the default: clause in a switch/case statement.

Simple Example

{ constant: constant value }

Complex Nested Values

The constant property accepts arbitrary structured JSON or YAML values, including nested objects and arrays:

{ constant: { complex: { values: ['are', 'possible'] } } }

On this page