Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

wrapping bloxsom with mason

by water (Chaplain)
on Oct 24, 2005 at 02:11 UTC ( #502358=perlquestion: print w/ replies, xml ) Need Help??
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!

water

Comment on wrapping bloxsom with mason
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?

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?

    --
    જલધર

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://502358]
Approved by sk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-08-30 13:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls