mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
32 lines
512 B
Markdown
32 lines
512 B
Markdown
|
# Statics
|
||
|
|
||
|
Add your files to `public` directory and Kemal will serve these files immediately.
|
||
|
|
||
|
```
|
||
|
app/
|
||
|
src/
|
||
|
awesome_web_project.cr
|
||
|
public/
|
||
|
js/
|
||
|
jquery.js
|
||
|
awesome_web_project.js
|
||
|
css/
|
||
|
awesome_web_project.css
|
||
|
index.html
|
||
|
```
|
||
|
|
||
|
Open index.html and add
|
||
|
|
||
|
```html
|
||
|
<html>
|
||
|
<head>
|
||
|
<script src="/js/jquery.js"></script>
|
||
|
<script src="/js/awesome_web_project.js"></script>
|
||
|
<link rel="stylesheet" href="/css/awesome_web_project.css"/>
|
||
|
</head>
|
||
|
<body>
|
||
|
...
|
||
|
</body>
|
||
|
</html>
|
||
|
```
|