summaryrefslogtreecommitdiff
path: root/macros.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-10-03 11:56:37 +0600
committerunwox <me@unwox.com>2025-10-13 23:11:01 +0600
commit3f5ade2e7a139bb4405437e8fc5546aafc7b05ef (patch)
tree77c437958d74b591f11ec207d16749cf207a51e3 /macros.fnl
parentf5a70e6a446e00969adb866ef2e2d10bf33bc4a8 (diff)
WIP shop
Diffstat (limited to 'macros.fnl')
-rw-r--r--macros.fnl11
1 files changed, 6 insertions, 5 deletions
diff --git a/macros.fnl b/macros.fnl
index 6053f6a..de9a71b 100644
--- a/macros.fnl
+++ b/macros.fnl
@@ -1,10 +1,11 @@
-(local entity-replacements {"&" "&amp;" ; must be first!
- "<" "&lt;"
- ">" "&gt;"
- "\"" "&quot;"})
+(local entity-replacements
+ {"&" "&amp;" ; must be first!
+ "<" "&lt;"
+ ">" "&gt;"
+ "\"" "&quot;"})
(local entity-search
- (.. "[" (table.concat (icollect [k (pairs entity-replacements)] k)) "]"))
+ (.. "[" (table.concat (icollect [k (pairs entity-replacements)] k)) "]"))
(fn escape-html [s]
(assert (= (type s) :string))