Thank you very much for your answers.
For what I need, I will have to go with Massimo's approach. That's
because I need to include several files (file1.html, file2.html,
file3.html, etc...) from index.html. The "ugly" thing is that I will
end up with several {{block ..}} in the layout.html file, but that's
not actually a problem to me so its good. Thanks again!
2014-12-11 15:50 GMT-03:00 Leonel Câmara <[email protected]>:
> I find that usually {{super}} is enough for my needs.
>
> You can make something like this
>
> {{extend 'file_1.html'}}
> <p>This is file_2.html</p>
>
> {{block jquery_code}}
> {{super}}
> //Some jquery code here
> {{end}}
>
> Then you just include file_2.html and it will have both its jquery_code and
> file_1.html jquery_code.
>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/vXnx2gp5bpE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.