Good question. Not sure there is a way that is best.
You are free to use URL everywhere but often it is not-necessary, 
specifically because all static files have the same prefix. It is therefore 
faster and more concise to use the above syntax. 


On Sunday, 19 January 2020 09:35:27 UTC-8, Jim S wrote:
>
> I'm wondering why in py4web you're not using the URL function to specify 
> the location of .js files.  This can be seen in layout.html and auth.html.  
> I also see that at the top of layout.html that you define:
>
> <base href="[[=URL('static')]]/">
>
> I recall this being the best way to define them in web2py.
>
> Comments?
>
> -Jim
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/1eb242f5-3406-40f3-a41a-2cde6dc4b5f6%40googlegroups.com.

Reply via email to