On Jun 18, 2011, at 2:34 AM, Matthias Dietrich wrote:
> 
> Am 18.06.2011 um 10:55 schrieb Marc Logghe:
> 
>> Hi all,
>> in HTML::Mason you could use inherit => undef flag in order to shorcut the 
>> component inheritance. How should one achieve that with Mason2 ?
>> In other words: how to indicate that wrapping is not wanted ?
> 
> it's:
> 
> <%flags>
> extends => undef
> </%flags>
> 
> in Mason2.

If you just want to avoid wrapping, this is probably better:

   <%method render>
   % $.main();
   </%method>

You'll still inherit from the default parent class, so you can share methods, 
attributes, etc. - it's just that render will call main() instead of wrap().

I have an item in my todo list that says "make this easier" :), since it is 
such a common desire. Suggestions welcome.

Jon

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to