Here is an example I have:

## base.html
<html>
    <body>
        ${next.body()}
    </body>
</html>

## layout.html
<%inherit file="base.html"/>
<div class="mainlayout">
    ${next.body()}
</div>

## index.html
<%inherit file="layout.html"/>
## .. rest of template

Of course, rendering index.html will inherit the other two files
(base.html and layout.html) but is it possible to just render say
layout.html only? When I do that, I get:

AttributeError: 'builtin_function_or_method' object has no attribute 'body'

Which makes sense, but am wondering if there is a better way to write
this code.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to