1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: unpack.coretag,v 1.4 2007-03-30 23:40:49 pajamian Exp $
10 UserTag unpack PosNumber 0
11 UserTag unpack addAttr
12 UserTag unpack hasEndTag
13 UserTag unpack Interpolate
14 UserTag unpack Version $Revision: 1.4 $
15 UserTag unpack Routine <<EOR
17 my ($opt, $template) = @_;
18 Vend::Interpolate::substitute_image(\$template);
19 if($Vend::MultiOutput) {
20 #::logDebug("We have mult-output");
21 for my $space (keys %Vend::OutPtr) {
22 #::logDebug("Filtering $space");
23 my $things = $Vend::OutPtr{$space} || [];
24 for my $ptr (@$things) {
25 my $subs = $Vend::OutFilter{$space} || [];
26 for my $sub (@$subs) {
27 #::logDebug("Filtering ${$Vend::Output[$ptr]}");
28 $sub->($Vend::Output[$ptr]);
29 #::logDebug("Now is ${$Vend::Output[$ptr]}");
36 Vend::Interpolate::substitute_image($_);
39 undef $Vend::MultiOutput;
40 $::Pragma->{no_image_rewrite} = 1;
41 Vend::Page::templatize($template);