NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Just CGI.pm? (Score:1)
I’d suggest at least adding CGI::Application or CGI::Prototype to the mix. Neither adds significant weight, except for declaring dependencies on template systems that they don’t actually need in order to function. Maybe you can also get Sam Tregar and/or merlyn to fix that.
Among template systems, Template::Simple is probably what you want. HTML::Template doesn’t have non-core dependencies either though.
Reply to This
Re: (Score:1)
Instead I'm using a templating method which implements very small subset of Template Toolkit syntax... i.e. it just supports [% foo %].
sub template {
my $self = shift;
my $html = shift;
my $args = shift || $self->args;
foreach ( 0
# Allow up to 10 levels of
Re: (Score:1)
If that is really all you need… then go for it. But I find that even minimal scripts outgrow that functionality very quickly.
My main point was that you should take a look at the lightweight web frameworks for Perl, though. Even the tiniest apps benefit from them in my experience – as soon as you have more than 2 screens, you need to impose structure somehow. (Of course, variations of Greenspun’s 10th Rule apply to many things. You could build a rudimentary framework in situ – much