interpolate_itl_references — allow ITL interpolation of reference-based ITL attributes
When the pragma is enabled, ITL interpolation of reference-based ITL attributes is enabled.
In other words, suppose that you execute the following code:
Example: Enable interpolate_itl_references
The pragma allows the following type of code:
[tmp testing]foobar'ed[/tmp] [record table=inventory key=newkey col.quantity=300 col.stock_message="[scratch testing]" ]
interpolate_itl_references is available in Interchange versions:
4.6.0-5.9.0 (git-head)
Interchange 5.9.0 (1/1 contexts shown):
Source: lib/Vend/Parser.pm
Line 210 (context shows lines 200-214)
}
next if $old;
if(! $attr) {
$attr->{OLD} = $val if defined $attr;
next;
}
if(defined $element) {
#::logDebug("Found element: $element val=$val");
$val = Vend::Interpolate::interpolate_html($val)
if $::Pragma->{interpolate_itl_references}
and $val =~ /\[\w[-\w]*\s+.*]/s;
if(! ref $attr{$attr}) {
if ($element =~ /[A-Za-z]/) {
$attr{$attr} = { $element => $val };