On Friday 01 February 2002 08:08, Matt Sergeant wrote:
> On Thu, 31 Jan 2002, Tod Harter wrote:
> > After looking at some other taglibs source code it seems to me that the
> > XSP module itself could probably be enhanced via a few OO perl tricks so
> > that you could just subclass it to create a taglib in a fairly clean way.
> > In essence what it seems like to me is you want to maybe create a set of
> > handlers that do the "compile time" part of the XSP automagically (so you
> > just define methods like "parse_start_mytag($self,...)" and those just
> > get called at the appropriate times. Should be pretty easy with an
> > AUTOLOAD trick or maybe using some tieing tricks.
>
> See perldoc Apache::AxKit::Language::XSP. That's (almost) exactly how
> "raw" taglibs work, except they're dispatched to different
> modules/packages by namespace. For an example check out the ESQL taglib.

ESQL might not be the simplest one to grok as an example, I'd recommend 
perhaps looking at one of the simpler taglibs on CPAN first :) Some of them 
are really trivial (perhaps AxKit::XSP::Sendmail would be a good start ?)

-- 
_______________________________________________________________________
Robin Berjon <[EMAIL PROTECTED]> -- CTO
k n o w s c a p e : // venture knowledge agency www.knowscape.com
-----------------------------------------------------------------------
Machines take me by surprise with great frequency. 
-- Alan Turing


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to