Hi,

I have a layout.html that contains {{block footer}}{{end}}.

I've added this so I can add specific javascript files for a controller to 
the layout without the need of loading it on all pages. I add it like this 
(this works fine!):

clients.html

html ...

{{block footer}}
 {{super}}
 <script src="{{=URL('static','js/site/clients.js')}}"></script>
{{end}}

html ...

Now I want to take it a step further... I also have this include on my view:

html ...

{{include 'includes/menu/some_clients.html'}}

html ...

{{block footer}}
 {{super}}
 <script src="{{=URL('static','js/site/clients.js')}}"></script>
{{end}}

html ...

It is possible to add data to "{{block footer}}" on the layout.html from 
the include ({{include 'includes/menu/some_clients.html'}})? I've tried to 
use this in some_clients.html:

{{block footer}}
 {{super}}
 <script src="{{=URL('static','js/site/extras.js')}}"></script>
{{end}}

The result is that this script isn't rendered into my layout.html when I 
request it in my browser :(

The reason that I want this is that 'some_clients.html' is used on a number 
of and I don't want to add the "<script src=
"{{=URL('static','js/site/clients.js')}}"></script>" to all my views where 
I need to include 'some_clients.html.

Am I trying to do something that isn't possible (yet?) in Web2Py?

Thank you for your reaction!

-- 
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/groups/opt_out.

Reply via email to