Re: Mason 2.0 thoughts

Hans Dieter Pearcey <[email protected]> Tue, 15 May 2007 20:33:14 -0400
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
On Tue, May 15, 2007 at 08:08:09PM -0400, Hans Dieter Pearcey wrote:
> <% generate_content | cache(expires_in => '5m', key => $key) %> ?
> 
> There's definitely some kind of conjunction between filters and escapes and
> CWC, but I'm still only groping towards it. :\

<%| cache(expires_in => '5m', key => $key) %>
Here's some content
<& /some/component, @some_args &>
and more content
</%>

Assumptions:

* escapes are transformed into a more generic filtering mechanism, where the
  LHS is passed as a coderef or something to the RHS, and the RHS can also take
  arbitrary perl args
* <% $foo | bar %> is a shortcut <%| bar %><% $foo %></%>
* <& &> uses scomp instead of comp (just for this particular example, but...)

hdp.

-------------------------------------------------------------------------
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/