On Tue, 29 Jan 2002, Terrence Brannon wrote: > I got AxKit up and running and like XPathScript quite a bit. I > think XML::XPath is popular even with users of HTML::Template and > it will be popular with me even if I return to HTML::Mason. > > However, after running thru the manuals, it doesn't appear that > AxKit does much in the way of web app development support.
The first thing to remember is that AxKit isn't Mason. It works very differently so you have to get out of the Mason hole and into the AxKit one... > By this I mean, how easy is it to get session support for a > multi-screen form in AxKit? It is very easy in Mason, just keep > slapping things in %SESSION and there you go. There's a Session taglib for this that you use in XSP. > Also, how about components? How can I take a mix of Perl and HTML > and re-use it in different pages? You write a taglib. > What about an autohandler? Something that gets called before the > current page is built to guarantee consistent look-and-feel > across pages. Well look and feel should be controlled by your stylesheet, not something that gets executed BEFORE the page is built. But if you want an ACTION to run before AxKit is run, write a plugin and use AxAddPlugin. > How about a dhandler? Something that gets called when an error occurs. AxErrorStylesheet. You can execute XSLT or whatever you need to when an error occurs (admittedly this is probably not as flexible as it needs to be). > And what about ESQL? Is that available? I saw it in the slides > but have not seen anyway to use it from AxKit. Furthermore, I > loathe embedding SQL in HTML and prefer the decoupled approach > that SQL::Catalog offers. So write a taglib around SQL::Catalog. ESQL is on CPAN though if you want that. I think ESQL is good for one-offs, but not for large scale projects. The key is to think in terms of taglibs. They're dead easy to write - see the docs for Apache::AxKit::Language::XSP::TaglibHelper (sorry about the long name though :-/) -- <!-- Matt --> <:->Get a smart net</:-> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
