From 9d01f74cd57d690ba736fb26a37c6ed8d3564aac Mon Sep 17 00:00:00 2001 From: Superkooka Date: Tue, 19 Dec 2023 18:04:31 +0100 Subject: [PATCH] add comment Signed-off-by: Superkooka --- blog.janet | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blog.janet b/blog.janet index aa219b0..e36b899 100644 --- a/blog.janet +++ b/blog.janet @@ -1,12 +1,14 @@ #!/usr/bin/env janet (defn read-from-file [file-path] + "Read a file from string filepath" (let [f (file/open file-path :r) content (file/read f :all)] (file/close f) content)) (defn htmlspecialchars + "Convert html special chars from a string" [value] (string/replace-all "\"" """ (string/replace-all "'" "'" @@ -61,6 +63,7 @@ :main (some (* :block (? :end-of-line)))}) (defn ast-to-html + "Convert an AST to html" [ast] (string/join (map