<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>more-list and interpolation</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2> I had a requirement to conditionally control the inclusion of<BR>
decade-next and decade-prev tags in a more-list. So, I blithely wrapped<BR>
them in an if block, then was surprised when the negative condition<BR>
wasn't working. Turns out that the contents of more-list aren't<BR>
interpolated before being processed, so the regular expression in<BR>
tag_more_list was matching my tags desipite their being included in an<BR>
if block.<BR>
<BR>
I hacked a few extra lines into Vend::Interpolate (below), but I'm<BR>
wondering if there's something I've missed that could do this without<BR>
the hack?<BR>
<BR>
if($r =~ s:\[interpolate\]::i) {<BR>
<BR>
$r = Vend::Interpolate::interpolate_html($r);<BR>
<BR>
}<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>