Sorry, this seems to work for me. I have a Base.mc: <%around wrap> <html> <% inner %> </html> </%around> <%class> method render { $.wrap(); # do wrapping } </%class>
and a foo.mc: Foo and when I request /Foo, I get <html> Foo </html> as expected. Can you forward me a minimal but complete set of components that illustrate your problem? Jon On Jul 24, 2011, at 1:25 PM, Matthias Dietrich wrote: > Hi Jon, > > when I use the following code snippet within the upper-most Base.mc, $.wrap() > seems to call the template directly instead of going through the rest of > Base.mc and calling the template there through inner(). Is this intended? > If yes, is there a possibility to skip rendering Base.mc only when certain > conditions are true? > > Best, > Matthias > > > > Code Snippet, used within Catalyst: > > <%class> > method render { > if ($c->req->is_xhr) { > $.main(); # skip wrapping > } else { > $.wrap(); # do wrapping > } > } > </%class> > > > -- > rainboxx Software Engineering > Matthias Dietrich > > rainboxx Matthias Dietrich | Phone: +49 7141 / 2 39 14 71 > Königsallee 43 | Fax : +49 3222 / 1 47 63 00 > 71638 Ludwigsburg | Mobil: +49 151 / 50 60 78 64 > | WWW : http://www.rainboxx.de > > CPAN: http://search.cpan.org/~mdietrich/ > XING: https://www.xing.com/profile/Matthias_Dietrich18 > GULP: http://www.gulp.de/profil/rainboxx.html > > > > > ------------------------------------------------------------------------------ > Magic Quadrant for Content-Aware Data Loss Prevention > Research study explores the data loss prevention market. Includes in-depth > analysis on the changes within the DLP market, and the criteria used to > evaluate the strengths and weaknesses of these DLP solutions. > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > _______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mason-users ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users