water has asked for the wisdom of the Perl Monks concerning the following question:

Hi --

I've been playing around with bloxsom. I'd like to put it within a mason site, where a autohandler handles headers and footers. I'd also like to try and keep bloxsom dynamic, vs. static mode. Anyone have any suggestions on how to have Mason grab bloxsom output and wrap it? I tried placing the entire bloxsom script in a mason perl block; after cleaning up many 'use strict' sorts of errors thrown by mason and mod_perl, I hit a dead end and could not pull that off. As a bloxsom newbie and a mason almost-newbie, help and advice appreciated!


Replies are listed 'Best First'.
Re: wrapping bloxsom with mason
by jaldhar (Vicar) on Oct 24, 2005 at 18:55 UTC

    There's a CPAN module called Text::BIP which does what Blosxom does but wrapped up in a module. Perhaps you could use that?


Re: wrapping bloxsom with mason
by Anonymous Monk on Oct 24, 2005 at 07:01 UTC
    Is bloxom a module? There must be something like print $bloxom->output, so just RTFM until you find it.
      Bloxsom is tiny tiny cool little single script that runs in several modes with embedded html, offers many plugins, etc. The send-info-to-screen isn't in one clear place. But more to the point, I'm not sure how to (despite the mason docs on on this very topic) how to change a cgi into something that gets itself wrapped by the mason autohandling autoload and dhandler processes....

      If I had a trivial hello world perl cgi script like

      print html_header; print "hellow world";
      how would I get the core to be mason wrapped?
      use HTML::Mason; my $interp = HTML::Mason::Interp->new (); ?????
      Here, if hello.cgi were static (hello.html), mason would see the ending, and wrap the page....

      but how to do this wrapping by hand?