I am currently developing a webpage using Go programming language. The code utilizes "html/template" to parse HTML, and I want to incorporate CSS into the project. While internal CSS works fine, switching to external CSS seems to pose a challenge as it cannot access the .css file.
Below 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
This is how I attempted to link the .css file in the HTML:
<head>
<link href="/stylesheets/main.css" media="screen" rel="stylesheet" type="text/css" />
</head>
In addition to CSS issues, I am also experiencing problems with displaying static images on the page. Here is an example of how I tried to include an image in the HTML:
<img src="/images/img1.jpg" />
What could possibly be causing these issues?
(I am testing this on a Windows 7 PC)