[ic] more-list and interpolation

Peter peter at pajamian.dhs.org
Tue Aug 17 20:02:19 UTC 2010

On 17/08/10 03:39, Wadkins, Raymond wrote:
>  I had a requirement to conditionally control the inclusion of
> decade-next and decade-prev tags in a more-list.  So, I blithely wrapped
> them in an if block, then was surprised when the negative condition
> wasn't working.  Turns out that the contents of more-list aren't
> interpolated before being processed, so the regular expression in
> tag_more_list was matching my tags desipite their being included in an
> if block. 
> I hacked a few extra lines into Vend::Interpolate (below), but I'm
> wondering if there's something I've missed that could do this without
> the hack?
>      if($r =~ s:\[interpolate\]::i) {
>          $r = Vend::Interpolate::interpolate_html($r);
>      }

Can you give some more details about what you were originally trying to
accomplish here?  There is almost certainly a better way to do this than
by hacking Interpolate.html, but it's hard to tell you what to do with
so little information.


More information about the interchange-users mailing list