can you fake it with a placeholder?

comp/nav_placeholder:
   <!-- NAV -->

page.html:
   <& /comp/nav_placeholder &>

autohandler %filter:
   my $placeholder = quotemeta($m->scomp('/comp/nav_placeholder'));
   my $nav = /$placeholder/ ? $m->scomp('/comp/nav') : '';
   s/$placeholder/$nav/;

On Jun 7, 2007, at 2:50 PM, Anthony Ettinger wrote:

> Is there a way to mimick a <%filter_after> behavior, wherein, the / 
> component/nav has a <%filter> block but is filtered at the very end  
> of the chain?
>
> Currently, I can only access the $m->notes() variable set from my  
> page inside the autohandler <%filter> block.
>
> The problem is that I want to only filter /comp/nav, but the  
> page.html doesn't set the variable I need because /comp/nav is  
> included prior to the $m->call_next; invocation in autohandler.
>
> I basically only want to filter the /comp/nav only, but after the  
> entire page is parsed by mason.
>
>
> -- 
> Anthony Ettinger




-------------------------------------------------------------------------
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/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to