Thanks for your reply. So, when you say macros still excel for general O-wrap, do you mean things like style_slot, script_slot and body_slot or do you also include things like header_slot, navigation_slot, breadcrumb_slot and footer_slot as well?
I'm a little confused as to whether render() from contentprovider must only provide a string or if a zpt can be used? If a zpt can be used, does the namepace "view" access the contentprovider object or the __parent__ view object? Is the namespace "context" available as the original object? Ksmith --- Stephan Richter <[EMAIL PROTECTED]> wrote: > On Friday 08 September 2006 15:07, > [EMAIL PROTECTED] wrote: > > Is it possible to use contentproviders as an > > alternative to macros for providing the look and > feel > > of a site? I thought I saw someone mention > something > > to this affect. > > Yes. While we have not completely removed the use of > macros yet, we are pretty > close. There are some scenarios where macros still > accelerate, like the > general o-wrap, but other than that we have > completely replaced their need. > Viewlets/Content Providers are much more powerful > and since they are > representation components in their own right, it is > much easier to separate > template and logic. > > Regards, > Stephan > -- > Stephan Richter > CBU Physics & Chemistry (B.S.) / Tufts Physics > (Ph.D. student) > Web2k - Web Software Design, Development and > Training > _______________________________________________ Zope3-users mailing list Zope3email@example.com http://mail.zope.org/mailman/listinfo/zope3-users