Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

wrapping bloxsom with mason

by water (Deacon)
on Oct 24, 2005 at 02:11 UTC ( [id://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

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-24 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found