Re: Mason 2.0 thoughts
"John Siracusa" <[email protected]> Mon, 14 May 2007 14:23:20 -0400
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On 5/14/07, Jonathan Swartz <[email protected]> wrote: > How about $m->caller_args? Called with 0, it gives the arguments to > the current component. > > http://www.masonhq.com/docs/manual/Request.html#item_caller_args > > That isn't technically the same as %ARGS, because %ARGS is a copy of > the arguments that can be changed inside the component...but I expect > it's good enough for your needs. Ah, I skipped right over that because of the name "caller." Didn't think of the 0 arg and equiv to perl's caller(). Thanks, it's a 90% solution :) > Have you set enable_autoflush => 0? > > http://www.masonhq.com/docs/manual/Admin.html#disabling_autoflush > > Unless you are actually using autoflush, you should set this; it will > replace the generated $m->print calls with simple inline appends to a > buffer. Only reason this is not the default is because it would break > current autoflush users. Thanks! It's enabled now. Is this a new feature? (Last time I read over all the Mason docs was probably 5+ years ago... :) -John ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/