* Don't autovifivy @fields array entries.
[interchange.git] / code / SystemTag / scratch.coretag
1 # Copyright 2002-2007 Interchange Development Group and others
2
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.
7
8 # $Id: scratch.coretag,v 1.6 2007-03-30 23:40:49 pajamian Exp $
9
10 UserTag scratch             Order        name
11 UserTag scratch             PosNumber    1
12 UserTag scratch             addAttr
13 UserTag scratch             Version      $Revision: 1.6 $
14 UserTag scratch             Routine      <<EOR
15 sub {
16         my ($var, $opt) = @_;
17         my $value = $::Scratch->{$var};
18         if($opt->{filter}) {
19                 $value = filter_value($opt->{filter}, $value, $var);
20                 $::Scratch->{$var} = $value unless $opt->{keep};
21         }
22     return $value;
23 }
24 EOR