How can I reference JS and CSS files when using th...
# ktor
p
How can I reference JS and CSS files when using thymeleaf? I can't seem to figure it out. My structure is like the following:
Copy code
├── application.conf
├── css
│   ├── example.css
│   └── main.css
├── js
│   └── main.js
├── logback.xml
└── templates
    └── index.html
I want to reference the main.css file and the main.js file. I thought I do it like that:
Copy code
<link th:href="@{../css/main.css}" rel="stylesheet"/>
but the browser prompts me with
Copy code
Failed to load resource: the server responded with a status of 404 (Not Found)
What am I missing here? Thanks ahead!