Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] Interpret arguments to usertag



I'm having difficulty understanding one part of the usertag capability. =
I need to pass a dynamic argument to a usertag, but it never seems to be =
interpreted properly.

Specifically:

	[tag xyz [data session arg] ]=20

Never interprets [data session arg]. What am I missing?

My sample "tag" is defined as follows:

UserTag tag Order action arg
UserTag tag Interpolate
UserTag tag Routine <<EOF
sub {
#line 6 "tag.tag"
        my ($action, $arg) =3D @_;

        my $str;

        $str =3D "<h1>Tag</h1>\n";
        $str .=3D sprintf "Action=3D%s<br>\n", $action;
        $str .=3D sprintf "Arg=3D%s<br>\n", $arg;

        return $str;
}
EOF


Search for: Sort by: