In function *pagetemplate*, template variables are added as pandas_*
variables. This fix provides also those listed as scalar and list meta
keys without the Pandoc prefix.
my $page = $params{page};
my $template = $params{template};
foreach my $k (keys %{$pagestate{$page}{meta}}) {
- next unless $k =~ /^pandoc_/;
+ next unless
+ (grep {/^$k$/} (@scalar_meta_keys, @list_meta_keys)) ||
+ ($k =~ /^(pandoc_)/);
$template->param($k => $pagestate{$page}{meta}{$k});
}
return $template;