in reply to More on Web Application Frameworks

I must say, that I too have walked this path and searched for the "ideal" CGI framework, as yet, to no avail ... I would however throw a bit more into the melting point, and recommend you having a look at this node by boo radley which offers some excellent suggestions for development direction of CGI frameworks - It was from this node that I was able to draw many ideas for what is becoming the intended featureset for a CGI framework which I am currently developing.

Currently, however, as many new work projects cross my desk, the available time for development disappears - For the time being, I have been making great use of the combination of CGI, CGI::Application, HTML::Template, Apache::Session and Data::FormValidator. If you are interested I can put up a couple examples of this, however as it stands, this framework is fairly basic and is far from a "packaged solution".

 

Replies are listed 'Best First'.
Re: Re: More on Web Application Frameworks
by impossiblerobot (Deacon) on Apr 09, 2002 at 03:11 UTC
    Thanks, rob_au, I would appreciate seeing what you've done.

    It sounds like the list of tools you mentioned would probably meet all of my requirements, but would require some work to integrate. I guess I need to really delve into CGI::Application, to see how much it can really do for me.

    Update: I forgot to mention that although HTML::Template doesn't really match my preference as far as tag/markup style, it's probably something I can live with (which is fortunate, since CGI::Application seems to be tied to it).

    Impossible Robot
      The following is a small script framework that I have used for a couple of smallish CGI applications. While it doesn't incorporate session handling in any sense more than hidden HTML fields, this could easily be changed through the use of Apache::Session and instead of returning the parameters retrieved so far into hidden fields of the template markup, the single session id could be that passed into these fields.

      Also too, with regard to templating engine, there is nothing to stop your usage of Template::Toolkit with CGI::Application, an aspect of usage which I commented on here.

      The code including some comments follows ...

        Thanks again, rob_au. I can already see some techniques that I can use, and the comments in the code are very helpful.

        And yes, after I wrote my update, I looked at CGI::Application in more detail and realized that it is really not so closely integrated with HTML::Template (perhaps not even enough to be meaningful). I still haven't settled on a templating module (or a framework), but you are right that using any templating module with CGI::Application should be fairly trivial.

        Impossible Robot