Good point. A view file can include as many other view files as you like but can only extend one if itself is not included.
Think of if as a tree structure. It is either parent who decides who the children are (include them) or the child decides who its parent is (extend it). You can have it both ways without creating inconsistencies. Massimo On Mar 14, 11:19 pm, Heo <hello.i.love...@gmail.com> wrote: > here's my problem > > File read.html ( extend Layout.html) > > {{extend 'layout.html'}} > > <div class="post"> > <h2>{{=post.title}}</h2> > </div> > > {{include 'rating.html'}} > > It works well > i change {{ include 'rating.html'}} ---> {{include}} > And in rating.html add {{ extend read.html }} > It doesn't work ... Error: NameError: name 'include' is not > defined > > i'm a beginner so i think my be i'm missing some thing ...pls help > > ( i use Web2py and GAE) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.