Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Mason Interp Perl string

by Anonymous Monk
on Feb 09, 2012 at 23:52 UTC ( [id://952888]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Mason Interp Perl string
in thread Mason Interp Perl string

... the file does not exist ...

Ah, right, in that case see handle_request/prepare_request in http://cpansearch.perl.org/src/DROLSKY/HTML-Mason-1.48/lib/HTML/Mason/ApacheHandler.pm

prepare_requests tries to resolve a component to a filename from the path -- copy/paste this function, delete the path resolving part, and define

my $comp_path = $interp->make_component( comp_source => $output);

Replies are listed 'Best First'.
Re^6: Mason Interp Perl string
by SleepyJay (Beadle) on Feb 10, 2012 at 21:51 UTC

    This was a good idea, too. But I can't seem to satisfy all of voodoo going on (Apache::Filter instead of HTML::Mason::Requset, then can't find isa_mason_exception, etc.). Sigh.

    I have to give up for now. I have other work to do and this was supposed to be a quick "what-if" that turned into many more hours than intended.

    I'll probably end up making the script generator code smarter and avoid any Mason tags. Too bad, though.

    thanks
    jason.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://952888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found