(ns aspire.templates
  (:require [net.cgrand.enlive-html :as en]
            [hiccup.core :as hc]))

(en/deftemplate index "public/index.html"
  [user-display-name]
  [:script] nil
  [:body] (en/append
           {:tag "script"
            :attrs {:type "text/javascript"
                    :src "js/aspire.js"}}))


(ns aspire.templates
  (:require [net.cgrand.enlive-html :as en]
            [hiccup.core :as hc]))

(defn render [template]
  (reduce str template))

(en/deftemplate index "public/index.html"
  [user-display-name]
  [:script] nil
  [:body] (en/append
           {:tag "script"
            :attrs {:type "text/javascript"
                    :src "js/aspire.js"}}))


Add a 'render fn for deftemplate --> strings.
Add a 'render fn for deftemplate --> strings.

This keeps liberator happier.

vlacs/navigator-archive