Name

ParseVariables — parse (interpolate) config file variables

SYNOPSIS

No | Yes

DESCRIPTION

Specify whether the configuration directives should have their values parsed (interpolated).

This applies to all configuration directives except Variable.

Of variables, only those in ALL CAPS are interpolated.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Enabling ParseVariables globally

ParseVariables 1

Example: Defining a variable containing parse-needing data

Variable STORE_ID topshop

ParseVariables Yes
StaticDir  /home/__STORE_ID__/www/cat
ParseVariables No

NOTES

AVAILABILITY

ParseVariables is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 568

['ParseVariables',   'yesno',            'No'],

Source: lib/Vend/Config.pm
Line 5414 (context shows lines 5414-5426)

sub parse_yesno {
my($var, $value) = @_;
$_ = $value;
if (m/^y/i || m/^t/i || m/^1/ || m/^on/i) {
  return 1;
}
elsif (m/^n/i || m/^f/i || m/^0/ || m/^of/i) {
  return 0;
}
else {
  config_error("Use 'yes' or 'no' for the $var directive\n");
}
}

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!