login

<     >

2023-07-15 12:40:20 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

docs: small improvements to README

diff --git a/README.md b/README.md
index 707cca9..333e666 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,12 @@
 = ludweb
 
-This is a simple web framework for LuaJIT.
+This is a simple web framework for LuaJIT on Linux.
 
 Features:
   * routing with regex parameter
   * templates with branching, looping, % include
   * extras: crypto hash for passwords, sqlite database
+  * no dependencies besides LuaJIT
 
 = hello world app
 
@@ -14,7 +15,7 @@ local lud = require "ludweb"
 
 lud.app.new_app{
     {"GET", "/?", function (req) return "Hello World!" end},
-    {"GET", "/(%S+)", function (req, name) return "Hi "..name.."!" end}
+    {"GET", "/me/(%S+)", function (req, name) return "Hi "..name.."!" end}
 }:run(8080)
 ```
 
@@ -37,16 +38,16 @@ local tpl = [[
   % else
   <ul>
     % for user in $users do
-    <li><a href="{{$user.nick}}">{{$user.name}}</a></li>
+    <li><a href="/user/{{$user.nick}}">{{$user.name}}</a></li>
     % end
   </ul>
   % end
 ]]
 
 local users = {
-    {nick="john_smith", name="John Smith"},
-    {nick="monteiro_lobato", name="Monteiro Lobato"},
-    {nick="lima_barreto", name="Lima Barreto"}
+    {nick="jsmith", name="John Smith"},
+    {nick="mlobato", name="Monteiro Lobato"},
+    {nick="mkupona", name="Mwana Kupona"}
 }
 
 local str = lud.template.render_str(tpl, {users=users})