I'm working on a webpage in Go. The Go code uses "html/template" to parse HTML. I would like to use CSS in the project. Everything is working well when I use internal CSS code, but when I would like to change to external it dosen't work. It looks like it can't access to the .css file.
Here is my app.yaml configuration:
application: makerboardstest
version: 1
runtime: go
api_version: go1
handlers:
- url: /.*
script: _go_app
- url: /stylesheets
static_dir: stylesheets
- url: /images
static_dir: images
Here is how I would like to access to the .css from the html:
<head>
<link href="/stylesheets/main.css" media="screen" rel="Stylesheet" type="text/css" />
</head>
I also have problems with (static) images. I would like to access to the image with this html code:
<img src="/images/img1.jpg" />
What can be the problem?
(I'm testing it on my PC, Win 7)