<div dir="ltr"><div><div><div><div><div><div><div><div>Hello there Paul,<br></div><br></div>i'm one of the developers of grok.layout, so maybe I can share some insights.<br></div>I've been away from grok for a while, but I'm still using that concept in my python projects.<br><br></div>Viewlets and Layouts are not mutually exclusive, they are both tools to compose a renderable view.<br></div>A layout is, as its name indicates, a way to organise your content, globally.<br></div>The Layout doesn't hijack the managers, it still renders them, since the TAL processor uses the 'view' variable of the template namespace to lookup the managers and viewlet components.<br></div>The Layout can be used to radically alter the global rending of a site, but also the managers called.<br>A Page is the core of what needs to be rendered for a given context, 
without the whole html heavy load, without the contextual viewlets and 
components coating, making it easy to aggregate them.<br>Since Layouts register on a layer, they can be a mean to skin your site easily.<br><br></div><div>This concept exists in Zope3 for a while, under the name Pagelet (<a href="https://pypi.python.org/pypi/z3c.pagelet">https://pypi.python.org/pypi/z3c.pagelet</a>). It was merely simplified for grok.<br><br><br><br><br></div><div><br></div><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-20 20:04 GMT+02:00 Christopher Lozinski <span dir="ltr"><<a href="mailto:lozinski@freerecruiting.com" target="_blank">lozinski@freerecruiting.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry for taking so long to respond.  I was at the Plone conference.<br>
<br>
I am using grok.layout.<br>
<br>
And yes it calls a content method.<br>
<br>
I did not realize that i could use the command:<br>
<br>
  grok.layout(aLayout).<br>
<br>
I do not like grok.layout.   Just was painful to use.  It is not the<br>
model for user interfaces that I want to use.<br>
<br>
I have page templates, I edit them through the web.  They can acquire<br>
viewlets.<br>
<br>
You have a different approach.  A very python centric point of view.  If<br>
that is your point of view, go with it.  Grok is<br>
pretty agnostic.  It will let you do whatever you want with views.<br>
<br>
I hope that helps.<br>
Chris<br>
<span class=""><br>
<br>
<br>
<br>
<br>
<br>
<br>
On 10/16/15 10:22 AM, Paul Sephton wrote:<br>
> Is that correct?  Do I have the right of it?<br>
<br>
<br>
</span>_______________________________________________<br>
Grok-dev mailing list<br>
<a href="mailto:Grok-dev@zope.org">Grok-dev@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/grok-dev" rel="noreferrer" target="_blank">https://mail.zope.org/mailman/listinfo/grok-dev</a><br>
</blockquote></div><br></div>