The docs for CGI::Prototype has this as a SYNOPSIS:
package My::HelloWorld; use base CGI::Prototype; sub template { \ <<'END_OF_TEMPLATE' } [% self.CGI.header; %] Hello world at [% USE Date; Date.format(date.now) | html %]! END_OF_TEMPLATE My::HelloWorld->activate;
However, use base is a mechanism for class-based subclassing. After reading merlyn's article, I knew that this was the proper way to do subclassing with protoypes:
package doesnt_matter; use CGI::Prototype; my $derived = Class::Prototyped->newPackage('My::App', ( 'parent*' => 'CGI::Prototype', template => sub { 'blah blah blah' }; ); $derived->activate;
Since the Class::Protoyped docs do not use base anywhere and since neither your article or docs explain how this class-based inheritance mechanism works in a prototyped context please do one of two things: (1) use a more orthodox means of subclassing (2) explain the ramifications behind such use.

To your credit, a file in the test suite does use @ISA, but I am a bit tired of trying to learn CGI::Prototype by inference on the test suite :)


In reply to CGI::Prototype and use base by metaperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.