diff options
| author | unwox <me@unwox.com> | 2024-12-23 22:25:53 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-12-23 22:26:10 +0600 |
| commit | 0413dc0cc0b75bb016dce603d5402bc470440142 (patch) | |
| tree | 1e739e316507e704f6cddd1602e031cdf21aec3a /bin | |
| parent | c070964e142398f55c01c00b02f12015d886bd5c (diff) | |
improve artoftea parsing
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/serve.fnl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl index c22becb..b498ece 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -504,6 +504,7 @@ texts.meta-title (.. form.query " | " texts.meta-title))) (local canonical-url (str.trim (.. "https://everytea.ru" path) "/")) + [:html {:lang "ru-RU"} [:head {} [:meta {:charset "utf-8"}] @@ -627,4 +628,5 @@ (must (luna.router.route "GET /robots.txt" robots-handler)) (must (luna.router.static "GET /static/" "static/")) -(must (luna.repl (fn [code] (fennel.eval code {:env _G})))) +(when luna.debug + (must (luna.evalfn (fn [code] (fennel.eval code {:env _G}))))) |
