good question....maybe pass a tuple of (URL, type) to response.files.append? but right now tuples are interpreted as inline CSS or JS...
the other thought is that this ends in /js....would it be acceptable to assume .js or /js are both js file types? does anyone know if /js is a google convention, or just a maps API bug? On Friday, September 21, 2012 1:09:50 PM UTC-7, Niphlod wrote: > > how do you propose to detect the correct embedding code (as in <script > src="">, <link href="">) without knowing from the extension what the file > actually is ? > > On Friday, September 21, 2012 10:07:28 PM UTC+2, howesc wrote: >> >> Hello, >> >> I have a desire to do the following: >> response.files.append('http://maps.google.com/maps/api/js?sensor=false') >> >> note that the URL has no .js suffix. as best i can tell >> response.include_files() in 2.0.9 will just ignore this file and never >> output the URL. (i had hacked an older version of web2py to output this but >> i'm upgrading now....) >> >> is there a generic way that we can use URLs that don't follow "typical" >> naming conventions, but still get them outputted correctly? >> >> thanks, >> >> cfh >> >> >> >> --