[ic] more-list and interpolation
Wadkins, Raymond
rwadkins at mcfina.com
Mon Aug 16 15:39:26 UTC 2010
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);
}
--
Ray Wadkins | Senior Web Developer, Customer Facing Technology
Michael C. Fina
ONE SOURCE | TOTAL RECOGNITION
www.mcfrecognition.com
T: 718-609-8519
E: rwadkins at mcfina.com
The information contained in this email is strictly confidential and subject to the Confidentiality Notice at www.mcfina.com/emailpolicy
P Please consider the environment before choosing to print this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.icdevgroup.org/pipermail/interchange-users/attachments/20100816/30b2ecfd/attachment.htm>
More information about the interchange-users
mailing list