Given %a = (b => 'b')
This template:
[% IF a.b %]
[% a.b %]
[% END %]
Will produce this output:
return sub ($context) {
my $stash = $context.stash;
my $output = '';
$output ~= Q{{{{}}}};
if a.b {
$output ~= Q{{{{}}}};
$output ~= $stash.get('a.b');$output ~= Q{{{{}}}};
}
$output ~= Q{{{{
}}}};
return $output;
Hash values are not fetched from stash in an IF statement.