makeEnvConfig

fnCfParserConfig makeEnvConfig() @trusted

Creates a CfParserConfig with system environment variable support.

This helper configures the parser to substitute environment variables using the system's environment. Use this when you want ${VAR} syntax to be replaced with actual environment variable values.

Example:

auto config = makeEnvConfig();
auto doc = parseCFDocument(`host = ${DB_HOST:-localhost}`, "", config);
// If DB_HOST is set to "db.example.com", host will be "db.example.com"
// Otherwise, host will be "localhost"

Returns

A CfParserConfig with environment variable substitution enabled.