Hello, I'm an Apache::ASP (mod_perl) programmer. I'm checking out AxKit because it looks interesting.
One question I have is, how do you deal with all this typing? I was reading the examples at http://axkit.org/docs/guide.dkb?section=4 and it seems that when everything is an XML tag, there is a lot of typing to be done. For example, take the following simple example of a webpage that has a form which says "Enter your name", and submits to itself upon which it redisplays the name entered: <xsp:page xmlns:xsp="http://apache.org/xsp/core/v1" xmlns:param="http://axkit.org/NS/xsp/param/v1" language="Perl" > <page> <xsp:logic> if (<param:name/>) { <xsp:content> Your name is: <param:name/> </xsp:content> } else { <xsp:content> <form> Enter your name: <input type="text" name="name" /> <input type="submit"/> </form> </xsp:content> } </xsp:logic> </page> </xsp:page> That's 23 lines of code. If I were to do this in Apache::ASP with the 'page' tag defined as an XMLSub, it would be only 11 lines, which is about 50%! <page><% my $name = $Request->Params('name'); if ($name) { %>Your name is: <%=$name%><% } else { %><form> Enter your name: <input type="text" name="name" /> <input type="submit" /> </form><% } %></page> I find the latter example to be much more readable and faster to code. Am I missing the point here? I read that one of the significant advantages of AxKit is total separation of web design and code. However, on the websites that I work on, I do both the web design and the code. Thoughts? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
