i'm trying to do something funky here so i'll do my best to explain. i
have the component which is meant to dynamically wrap other widgets in
order to centrally handle caching, access control, etc...

ideally it should be as transparent as possible and this includes
calling components with content. however because the content is passed
to this wrapper and not the target component this presents a bit of a
problem. what i would like is to re-pass that content on down into the
target component. Example:

top_component.mas
================
<h1>Hello World!</h1>
<&| 'wrapper.mas', component => 'name.mas' &>
    <% $ARGS{name} %>
</&>

wrapper.mas
==========
<%init>
$m->comp( { content => $m->content }, 'name.mas' );
</%init>

name.mas
========
<p>Good to meet you <% $m->content %></p>


This is an extremely simplified example of what i'm actually doing.
but you can see the problem in that the content effectively gets
executed twice. i'd like to call something like $m->content_ref that
can be used in the wrapper.mas so that when $m->content is called in
the target component it is calling exactly what was passed from the
parent component.

thanks for your help.

-- 
William Cox

email: [EMAIL PROTECTED]
blog: http://my-dimension.com/
music: http://www.last.fm/user/mydimension/
photos: http://flickr.com/photos/mydimension/

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