<!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>&nbsp; I had a requirement to conditionally control the inclusion of<BR>
decade-next and decade-prev tags in a more-list.&nbsp; So, I blithely wrapped<BR>
them in an if block, then was surprised when the negative condition<BR>
wasn't working.&nbsp; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if($r =~ s:\[interpolate\]::i) {<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $r = Vend::Interpolate::interpolate_html($r);<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>