Create statics.md

This commit is contained in:
Fatih Kadir Akın 2015-12-04 13:45:35 +02:00
parent 4465ed9965
commit b5e98f2f9d
1 changed files with 31 additions and 0 deletions

31
docs/statics.md Normal file
View 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>
```