From 773e7f76d1e0e7ee067e027bac9b2e08f692c650 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 4 May 2002 00:32:31 +0000 Subject: [PATCH] Added this macro per user request. --- lib/WebGUI/Macro/Extras.pm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/WebGUI/Macro/Extras.pm diff --git a/lib/WebGUI/Macro/Extras.pm b/lib/WebGUI/Macro/Extras.pm new file mode 100644 index 000000000..35ac4f1aa --- /dev/null +++ b/lib/WebGUI/Macro/Extras.pm @@ -0,0 +1,25 @@ +package WebGUI::Macro::Extras; + +#------------------------------------------------------------------- +# WebGUI is Copyright 2001-2002 Plain Black Software. +#------------------------------------------------------------------- +# Please read the legal notices (docs/legal.txt) and the license +# (docs/license.txt) that came with this distribution before using +# this software. +#------------------------------------------------------------------- +# http://www.plainblack.com info@plainblack.com +#------------------------------------------------------------------- + +use strict; +use WebGUI::Session; + +#------------------------------------------------------------------- +sub process { + my ($output); + $output = $_[0]; + $output =~ s/\^Extras\;/$session{setting}{lib}\//g; + return $output; +} + +1; +