Changes for net.cgrand.enlive-html/defsnippet

sdevijver on Mon, 28 May 2012
;; snippet1.html
;; <h1>Welcome <span id="name">Rich</span></h1>

(defsnippet snippet1
   "snippet1.html"
   [[:h1]]
   [name]
   [:#name] (content name))

;; template1.html
;; <html><body><div id="snippetinsert"/></body></html>
(deftemplate template1
   "template1.html"
   [name]
   [:#snippetinsert] (content (snippet1 name)))

(template1 "Steven")
sdevijver on Mon, 28 May 2012
;; snippet1.html
;; <h1>Welcome <span id="name">Rich</span></h1>

(defsnippet snippet1
   "snippet1.html"
   [:h1]
   [name]
   [:#name] (content name))

;; template1.html
;; <html><body><div id="snippetinsert"/></body></html>
(deftemplate template1
   "template1.html"
   [name]
   [:#snippetinsert] (content (snippet1 name)))

(template1 "Steven")
sdevijver on Mon, 28 May 2012
;; snippet1.html
;; <h1>Welcome <span id="name">Rich</span></h1>

(defsnippet snippet1
   "snippet1.html"
   [:h1]
   [name]
   [:#name] (content name))

;; template1.html
;; <html><body><div id="snippetinsert"/></body></html>
(deftemplate template1
   "template1.html"
   [name]
   [:snippetinsert] (content (snippet1 name)))

(template1 "Steven")