On 9/15/06, Selector, Lev (GTI) <[EMAIL PROTECTED]> wrote:
>
> To put the content of the requested html file into the $doc_text variable, I
> do the following:
>
>          my $path = $m->request_comp()->path();
>          my $doc_text = $m->scomp($path);
>
> Is there a simplier more direct way of doing this ??
>

I'd just use $m->file - saves Mason having to parse the file

"Returns the contents of filename as a string. If filename is a
relative path, Mason prepends the current component directory."

http://www.masonhq.com/docs/manual/Request.html#other_methods

Cheers.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to