From 2cb96ca5d27879683415bae2088b7f974440bc74 Mon Sep 17 00:00:00 2001 From: Dan Holmsand Date: Wed, 9 Sep 2015 22:05:14 +0200 Subject: [PATCH] Cosmetics --- demo/sitetools/core.cljs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/demo/sitetools/core.cljs b/demo/sitetools/core.cljs index 8419e94..655e30a 100644 --- a/demo/sitetools/core.cljs +++ b/demo/sitetools/core.cljs @@ -18,8 +18,7 @@ {:pre [(satisfies? ISwap a) (ifn? f)]} (if a.rswapping - (-> (or a.rswapfs - (set! a.rswapfs (array))) + (-> (or a.rswapfs (set! a.rswapfs (array))) (.push #(apply f % args))) (do (set! a.rswapping true) (try (swap! a (fn [state] @@ -138,7 +137,7 @@ (r/render-to-static-markup [:html [:head - [:meta {:charset "utf-8"}] + [:meta {:charset 'utf-8}] [:meta {:name 'viewport :content "width=device-width, initial-scale=1.0"}] [:base {:href (prefix "" (:page-name page-conf))}] @@ -155,7 +154,7 @@ (let [b (:body conf) _ (assert (vector? b)) bhtml (r/render-component-to-string b)] - (str "" + (str "\n" (html-template (assoc conf :page-conf {:page-name page-name} :body-html bhtml)))))