Constant value processor
Core v2.2.0
The
processor creates a static, immutable text value. It's primarily used
internally by the framework for static configuration values and literal text content.
In user configurations,
or direct text content is typically preferred.
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://org.webharvest/schema/2.1/core">
<def var="apiKey">
<constant value="sk_live_abc123xyz"/>
</def>
</config>
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://org.webharvest/schema/2.1/core">
<constant value="https://api.example.com/v1"/>
</config>
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://org.webharvest/schema/2.1/core">
<!-- This is clearer and more common -->
<def var="baseUrl" value="https://api.example.com/v1"/>
</config>