Again on the topic of response.files.append(...).
I do not think I ever mentioned it but when a view extends another
view, the {{extend ...}} does not need to be the first line in the
page. This means you can defined variables before extending so the
extended page sees those variables. For example

{{response.files.append('something.js')}}
{{extend 'layout.html'}}
rest of the page

In this way only the action associated to this view will have
something.js included in the header.

Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to