|
From: Chris W. <la...@us...> - 2005-10-22 21:54:48
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21450 Modified Files: Brick.pm Log Message: add the 'source_template' used to generate the file Index: Brick.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Brick.pm,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Brick.pm 24 Mar 2005 05:13:47 -0000 1.5 --- Brick.pm 22 Oct 2005 21:54:40 -0000 1.6 *************** *** 272,276 **** foreach my $name ( @resource_names ) { my $info = $self->load_resource( $name ); - # First process any template keys in the destination... my ( $final_dest_spec ); --- 272,275 ---- *************** *** 296,299 **** --- 295,299 ---- unless ( 'no' eq lc $info->{evaluate} ) { my ( $new_content ); + $template_vars->{source_template} = $name; $TEMPLATE->process( \$content, $template_vars, \$new_content ) || oi_error "Cannot copy and replace tokens from resource '$name': ", |