in reply to Re: Output should have multiple segments
in thread Output should have multiple segments

$m->notes ? What's that? (ref: http://www.masonbook.com/book/chapter-4.mhtml#TOC-ANCHOR-1

Replies are listed 'Best First'.
Re^3: Output should have multiple segments
by Vynce (Friar) on Jul 17, 2008 at 05:15 UTC
    $m->notes is very useful.

    That said, I dislike & mistrust using Mason's filter stuff, though there are times & ways in which I think it is the most expedient option.
      I guess notes was added after the books were written. It's basically global variables that don't need to be declared. Handy to have a component "return" the generated text but still be able to present values back to the caller. Gee, I thought that was all evil stuff? Making it seem new again for a new generation!

      I've not used Filter yet, but I'm less concerned if filtering individual components such as to mark the current page in a navigation menu, because you can be sure what to expect in the text to grep.

      —John