[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: documenation discussion (WAS: Re: [mv] IF tag: [if session login] doesn't work?)
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting Charlie Blanchard (charlie@blanchardsite.com):
> On Sat, Mar 25, 2000 at 11:36:44AM -0500, Mark Stosberg wrote:
> >
> > Hans-Joachim Leidinger wrote:
> > >
> > I noticed that when Bill Randle documented the error tag, he looked at
> > a subroutine named
> > tag_error
> > so I looked for other subroutines named that way. I did this on my system:
> >
> > cd ~mvend
> > grep -Rai 'sub tag_' *
> >
> > on FreeBSD 3.1, those grep options mean "Grep recursively, only look
> > in text files, and disregard case). So that's how I found all the tag
> > routines in Interpolate.pm. It looks like a somewhat incomplete list
> > though. Someone else mentioned that a lot of tags and references to
> > where to find them are listed in Parse.pm.
> >
> On a RH6x Linux box it works with:
>
> grep -ri 'sub tag_' .
>
Yes, but in this case you can go to the source. The tag routines are
all mapped in Vend/Parse.pm. Not all begin with tag_.
Look at the %Routine variable, which goes something like:
my %Routine = (
accessories => \&Vend::Interpolate::tag_accessories,
area => \&Vend::Interpolate::tag_area,
banner => \&Vend::Interpolate::tag_banner,
bounce => sub { return '' },
calc => \&Vend::Interpolate::tag_calc,
cart => \&Vend::Interpolate::tag_cart,
catch => \&Vend::Interpolate::catch,
cgi => \&Vend::Interpolate::tag_cgi,
checked => \&Vend::Interpolate::tag_checked,
'currency' => sub {
my($convert,$noformat,$amount) = @_;
return &Vend::Util::currency(
$amount,
$noformat,
$convert);
},
data => \&Vend::Interpolate::tag_data,
# ...
# more
# ...
value => \&Vend::Interpolate::tag_value,
value_extended => \&Vend::Interpolate::tag_value_extended,
);
You can see the settings of Interpolate, addAttr, hasEndTag, etc. in
similar ways.
--
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
Research is what I'm doing when I don't know what I'm doing.
-- Wernher Von Braun
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list