mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Create statics.md
This commit is contained in:
parent
4465ed9965
commit
b5e98f2f9d
1 changed files with 31 additions and 0 deletions
31
docs/statics.md
Normal file
31
docs/statics.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# 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>
|
||||||
|
```
|
Loading…
Reference in a new issue