>
> Thanks very much Anthony. A small question before I mark this as complete.
>
> Does your comment about web2py template not applying to the CSS file in 
> the static folder also apply to the js file in the static folder?
>
> Does web2py template apply only to the Views?
>

Yes, though you could serve dynamically generated CSS and JS files. In a 
controller (e.g., default.py):

def css_js():
    response.view = '../static/%s' % '/'.join(request.args)
    return dict()

and in a view:

<link rel="stylesheet" type="text/css" href=
"{{=URL('default','css_js',args=['css','mystyles.css'])}}">

Then you could have a /static/css/mystyles.css web2py template, which would 
be dynamically served when requested through the css_js() function in 
default.py. This is much less efficient than serving a pure static file, 
though, so it's probably not worth doing just to dynamically generate a few 
URLs.

Anthony

Reply via email to