|
|
Home » U++ Library support » Skylark » Skylark -- Static files -- CSS and js
Skylark -- Static files -- CSS and js [message #53739] |
Sun, 26 April 2020 09:14  |
 |
deep
Messages: 268 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi
I am using following folder layout
/opt/myapp -- application folder
/opt/myapp/templates -- for witz files
/opt/myapp/static -- for CSS and js files
With this I have one problem. css and js files are not accessible in web browser
When I see html source it shows path for css as
static/css/mystyle.css
and full url as
localhost:8001/myapp/static/css/mystyle.css
but this file is not accesible from the location.
What folder layout I should use to make CSS available.
Warm Regards
Deepak
|
|
|
|
|
Re: Skylark -- Static files -- CSS and js [message #53787 is a reply to message #53755] |
Fri, 01 May 2020 10:42  |
 |
deep
Messages: 268 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi Mirek,
Now I set path variable and it is working.
But I have question.
My path settings
path="static";
Template files are located in myapp/templates folder. It is working without adding it to path. but for js/css files I need to add "static" to path.
I use to render.
.RenderResult ( "templates/index" );
Warm Regards
Deepak
|
|
|
Goto Forum:
Current Time: Sat May 10 20:45:51 CEST 2025
Total time taken to generate the page: 0.00440 seconds
|
|
|