From a19eb2cf90c3cf4b99af0739a22cacd49cb2cb66 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 23 Jan 2021 15:51:10 +0100 Subject: [PATCH] Avoid compilation --- feature-hiccup/babashka/impl/hiccup.clj | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/feature-hiccup/babashka/impl/hiccup.clj b/feature-hiccup/babashka/impl/hiccup.clj index db119f84..f54d6bfa 100644 --- a/feature-hiccup/babashka/impl/hiccup.clj +++ b/feature-hiccup/babashka/impl/hiccup.clj @@ -9,11 +9,17 @@ (def hns2 (sci/create-ns 'hiccup2.core nil)) (def uns (sci/create-ns 'hiccup.util nil)) +(defn html [x] + (hiccup/html x)) + (def hiccup-namespace - {'html (copy-var hiccup/html hns)}) + {'html (copy-var html hns)}) + +(defn html2 [x] + (hiccup2/html x)) (def hiccup2-namespace - {'html (copy-var hiccup2/html hns2)}) + {'html (copy-var html2 hns2)}) (def hiccup-util-namespace {'*html-mode* (copy-var util/*html-mode* uns)