In web2py I have 5 applications which make use of the same static
files, at the moment each application has its own static files folder
containing these files. I wonder whether it is possible to remove the
static files the applications have in common from all applications but
one and reference the static files in this application from the other
applications?

For example, have application core's static files folder contain the
calendar.css, jquery.js and calendar.js files and reference them from
application site's web2py_ajax file in the following way:

<link href="{{=URL(r=request,a='core',c='static',f='calendar.css')}}"
rel="stylesheet" type="text/css" media="screen" charset="utf-8" />
<script src="{{=URL(r=request,a='core',c='static',f='jquery.js')}}"
type="text/javascript"></script>
<script src="{{=URL(r=request,a='core',c='static',f='calendar.js')}}"
type="text/javascript" charset="utf-8"></script>


Will this work, or am I overlooking something that will cause this to
break. What about moving the static files the applications have in
common to a location outside the applications? What would be the best
location?


Kind regards,
Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to