On Apr 21, 10:52 pm, Tim Michelsen <timmichel...@gmx-topmail.de> wrote: > is it possible to dynamically change web page headers in view? > I am using openlayers.org, an external javascript library which demands > to embed > * a library script reference in the header > * a custom css in the header > How can this be done dynamically? > So far, I just created new layout.html (layout_mylib.html) based on the > default. Then I included the js & css in that layout file. > In the pages where I want to use openlayers I extended layout_mylib.html > instead of layout.html. > Is this a good way or are there better options?
What I do is to use view fragments & so in my custom view for the map_viewing_client I have: {{extend 'layout.html'}} {{include 'ol_js_loaders.html'}} See: http://trac.sahanapy.org/browser/views/gis/map_viewing_client.html F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---