kemal/docs/statics.md
2015-12-07 22:03:35 +02:00

457 B

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>
 <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>