Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Slashcode [slashcode.org] does this.
    --
    • Randal L. Schwartz
    • Stonehenge
  • ...at least for the introductory stuff. Looking back at the code in OpenInteract 1.x [cpan.org] it's actually pretty well commented and may give you an idea of what to do. Everyplace where it refers to a 'SiteTemplate' object just substitute 'database record'. It's a good idea to put this in an object because you may find that database access isn't all that great for your needs -- filesystems are very efficient :-)

    One note: OI has a custom Template::Context object which interprets templates with a package::name format for its own uses, so calling something like:

    [% INCLUDE mypackage::mytemplate %]

    will do the right thing ('package' in this case being an OpenInteract package, not a Perl package).

  • I did the work for it in Slash, you can pick my brain if you wish.