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: directive_value.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $
10 UserTag directive_value order name unparse
11 UserTag directive_value PosNumber 2
12 UserTag directive_value Version $Revision: 1.4 $
13 UserTag directive_value Routine <<EOR
15 my($name,$unparse) = @_;
16 my ($value, $parsed) = UI::Primitive::read_directive($name);
18 $parsed =~ s/\@\@([A-Z]\w+?)\@\@/$Global::Variable->{$1}/g;
19 $parsed =~ s/__([A-Z]\w+?)__/$Vend::Cfg->{Variable}{$1}/g;
21 return ($parsed || $value);