From 103bd082143565adae273e23e46e8067431eea22 Mon Sep 17 00:00:00 2001 From: unwox Date: Fri, 27 Sep 2024 15:30:38 +0600 Subject: remove lua and fennel related files --- init.fnl | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 init.fnl (limited to 'init.fnl') diff --git a/init.fnl b/init.fnl deleted file mode 100644 index 0f89ad3..0000000 --- a/init.fnl +++ /dev/null @@ -1,17 +0,0 @@ -(local fennel (require :fennel)) -(local html (require :html)) - -(local template - [:html {:lang "en"} - [:head {} - [:meta {:charset "UTF-8"}] - [:title {} "A new cool web server for lua"]] - [:body {} - [:h1 {} "Hello!"] - [:pre {} "This is my super blog!"]]]) - -(fn root-handler [method path headers body] - (let [headers { :content-type "text/html" }] - (values 200 headers (html.render template)))) - -(luna.router.route "/" root-handler) -- cgit v1.2.3