Ethosa 5 rokov pred
rodič
commit
2659e3a6b7
1 zmenil súbory, kde vykonal 16 pridanie a 0 odobranie
  1. 16 0
      README.md

+ 16 - 0
README.md

@@ -12,14 +12,30 @@
 # Install
 -   `git`: `nimble install https://github.com/Ethosa/akane.git`
 
+
 # Features
 -   Pages with URL handling methods: `equals`, `startswith`, `endswith`, `regex`,`notfound`.
 -   `templates` folder.
+-   Simple usage
+    ```nim
+    import akane
+
+    var server = newServer(debug=true)  # launch on http://localhost:5000
+
+    server.pages:
+      equal("/"):
+        # type of `request` is a Request.
+        await request.answer("Hello, world!")  # utf-8 encoded message.
+
+    server.start()
+    ```
+
 
 # FAQ
 *Q*: How I can help to develop this project?  
 *A*: You can put a :star: :3
 
+
 <div align="center">
   Copyright 2020 Ethosa
 </div>