Hi Chris,
Thanks for your reply.
Can you check if there are any errors given by your browser about the files
> not being found?
>
Firebug does not report any errors.
> Maybe take a look at the html that is generated and see what is there.
>
Paths should be relative to the /views folder; can you confirm that all of
> the paths are correct?
>
All paths are correct.
The only clue I have got has got to do with include depth. The include is
in a view which is
included in default/layout.html which extends scaffolding/inner_layout.html
which extends
scaffolding/outer_layout.html. When I move the view into
default/layout.html every thing
works fine.
Regards,
Annet
>
> On Thursday, May 15, 2014 8:37:23 AM UTC-4, Annet wrote:
>>
>> That's the problem the alert and form are rendered the content of
>> {{inlcude}} is not.
>>
>> In a view called layout.html in a folder 'admin' I have the following
>> code:
>>
>> {{extend 'scaffolding/inner_layout.html'}}
>>
>>
>>
>>
>> {{include 'buildingblocks/my_header.html'}}
>>
>>
>>
>> > width="64px" height="64px" />
>>
>>
>> Admin overzicht
>>
>>
>>
>> {{include 'buildingblocks/page_header.html'}}
>>
>>
>>
>> {{include 'buildingblocks/alert.html'}}
>> {{if form:}}
>> {{=form}}
>> {{pass}}
>> {{include}}
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> When I put the following section in a view called: my_block.html in
>> folder 'buildingblocks'
>>
>>
>>
>> {{include 'buildingblocks/alert.html'}}
>> {{if form:}}
>> {{=form}}
>> {{pass}}
>> {{include}}
>>
>>
>>
>>
>>
>> and replace the code with {{include 'buildingblocks/my_block.html'}}
>> The alert and the form are rendered, but the content of {{include}}
>> isn't rendered at all.
>>
>> For instance the following function:
>>
>> def index():
>> response.view = 'admin/index.html'
>> return dict(form=None)
>>
>> and view admin.html:
>>
>> {{extend 'admin/layout.html'}}
>>
>> Test view
>>
>> Does render anything. I have no idea why not. I hope one of you does.
>>
>>
>> Regards,
>>
>> Annet
>>
>>
>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.