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