Strangely enough, that is the default behavior of mason. Any component can be called as a component-with-content, but if you do not actually call $m->content and do something with it, the content will be discarded.
~ John Williams On Tue, 31 Oct 2006, Paul Wallingford wrote: > A solution would be to have something like the component-with-content > feature, except that the content is discarded by Mason. Maybe a > component-with-dummy-content. > > Example: > > <&! /components/leftnav.mas, page => "products" &> > > <img src="/images/grayarea.gif" width="180" height="500"> > > </&> > > > The HTML editor would ignore the Mason specific parts and display the > gray GIF, in this case, which would take up the space normally occupied > by the full blown navigation component thus preserving the layout of the > page. > > Mason would substitute the GIF for the content of the actual component. > > This is actually a simple change. I can submit a patch if people agree > this is useful. For me it would help immensely. > > Or, are there any suggestions on how to accomplish this currently? > > Paul Wallingford ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users