[ic] [set] or [tmp] but show=1 also??
Paul Jordan
interchange-users@icdevgroup.org
Sat Apr 12 15:03:01 2003
> [set] seems
> > wasted. Any ideas?? Or is this a non issue WRT efficiency? It is for the
> > building of redundant "mini control panels" that need to be
> repeated several
> > times.
> >
>
> The set tag is completely brain-dead simple. You can do your
> own real easy:
>
> UserTag setshow Order name
> UserTag setshow hasEndTag
> UserTag setshow PosNumber 1
> UserTag setshow Routine <<EOR
> sub {
> my($var,$val) = @_;
> $Scratch->{$var} = $val;
> }
> EOR
>
> Doesn't even have to be global.
>
> [setshow newval]Paul[/setshow]
>
> And can still be shown with [scratch newval] later.
oh man, Thanks Mike. Opens up alot of things when I look at it that way. I
feel stupid now. I don't even know if this will be a small step towards a
more efficient part (of many individual parts) in a page, but it seemed like
a good idea. here is this if to complete the set.
UserTag tmpshow Order name
UserTag tmpshow hasEndTag
UserTag tmpshow PosNumber 1
UserTag tmpshow Routine <<EOR
sub {
my($var,$val) = @_;
push @Vend::TmpScratch, $var;
$::Scratch->{$var} = $val;
}
Paul