[freeside] Mason
ivan
ivan at 420.am
Wed Oct 3 19:16:54 PDT 2001
On Wed, Oct 03, 2001 at 04:43:27PM -0700, Kristian Hoffmann wrote:
> Again, nevermind. Apache::ASP works fine, like the docs say. Mason
> smokes crack.
Oh, Mason is great. If I were writing a web app from scratch, I'd choose
it over Apache::ASP for sure. The main reason Apache::ASP is working
better for Freeside right now is that, under Mason, you can't use the
CGI.pm module to parse GET/POST arguments:
http://www.masonhq.com/docs/faq/#should i use cgi.pm to read get/post arguments
To get Mason in a more usable state, I hope to provide a "wrapper"
CGI.pm that implements the necessary methods (they're scattered all over
the various cgi's-that-became-"templates").
>
> -Kristian
>
> On Tue, 2 Oct 2001, Kristian Hoffmann wrote:
>
> > Now using the handler.pl from htetc/, I'm getting a similar error on all
> > the cgi scripts that are still the original cgi script wrapped in
> > "<% ... %>". According to the Mason docs, you can't load modules with use
> > inside of the script. Instead, you have to do it with Mason::Commands or
> > something like that, which it looks like you're doing. Does that mean
> > these all need to be converted before they'll work, or am I still smokin'
> > something?
> >
> > error in file: /usr/local/etc/freeside/apache/mason/obj/browse/part_pkg.cgi
> > line 16: "use" not allowed in expression
> > line 16: syntax error
> > line 17: BEGIN not safe after errors--compilation aborted
> >
> > context: ...
> > 12:
> > 13: $_out->(
> > 14: #<!-- $Id: part_pkg.cgi,v 1.4 2001/09/04 14:44:06 ivan Exp $ -->
> > 15:
> > 16: use strict;
> > 17: use vars qw( $cgi $p $part_pkg );
> > 18: use CGI;
> > ---SNIP---
> >
> >
> > -Kristian
> >
> >
> >
>
--
_ivan
More information about the freeside-users
mailing list