I do not know but I strongly advise against building explicit paths
but they will break if you use routes.py
let web2py build urls:
instead of
@import "./dojoroot/digit/themes/tundra/tundra.css"
@import "./dojoroot/dojo/resources/dojo.css"
do
@import "{{=URL(request.application,'static','dojoroot/digit/themes/
tundra/tundra.css')}}"
@import "{{=URL(request.application,'static','dojoroot/dojo/resources/
dojo.css')}}"
On Oct 17, 1:46 pm, Celso <[email protected]> wrote:
> Hi,
> I have a html file in the myapp/static directory that I am opening
> using web2py.
>
> I can sucessfully import the javascript content from a subdirectory of
> myapp/static using relative path, for example, src="./dojoroot/dojo/
> dojo.js".
> But, when I trying to import CSS files using relative path, for
> example, @import "./dojoroot/dojo/resources/dojo.css"
> it doesn't. I tried other paths without sucess.
> Does anybody know the reason?
> Here is the head part of my example:
>
> <head>
> <meta http-equiv="content-type" content="text/html;
> charset=utf-8"/>
> <title>RTE System</title>
> <style type="text/css">
> @import "./dojoroot/digit/themes/tundra/tundra.css"
> @import "./dojoroot/dojo/resources/dojo.css"
> </style>
> <script type="text/javascript" src="./dojoroot/dojo/dojo.js"
> djConfig="parseOnLoad: true"></script>
> <script type="text/javascript">
> dojo.require("dijit.layout.ContentPane");
> dojo.require("dijit.layout.BorderContainer");
> dojo.require("dojo.parser");
> </script>
> </head>
>
> Thanks,
> Celso Axelrud
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---