That's an onld syntax.
You can do
response.files.append(URL('static','myview.css'))
On Sunday, 5 February 2017 09:12:04 UTC-6, Andrea Fae' wrote:
>
> Yes, thank you, but why this syntax? r=request,c='static',f='myview.css'
>
> Il giorno domenica 5 febbraio 2017 15:36:02 UTC+1, Nico de Groot ha
> scritto:
>>
>> response.files is a list of filenames that will be included while
>> rendering the view. You can add your own .css and .js files to this list
>> using append and insert. See the Web2py book for details
>> http://www.web2py.com/books/default/chapter/29/05/the-views?search=response.files.append
>>
>> Nico de Groot
>>
>>
--
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.