Changes for clojure.template/do-template

Bertrand on Sat, 09 Jun 2012
;; Because it is expanded at compile time, you can also use special 
;; forms as in full blown macros:

user=> (use 'clojure.template)
user=> (do-template [a b] (def a b) d 1 e 2 f 3)
#'user/f
user=> d
1
user=> e
2
user=> f
3

;; and if you are curious why
user=> (use 'clojure.walk)
user=> (macroexpand-all '(do-template [a b] (def a b) d 1 e 2 f 3))
(do (def d 1) (def e 2) (def f 3))

zkim on Sun, 26 Sep 2010
;; Because it is expanded at compile time, you can also use special 
;; forms as in full blown macros:

user=> (do-template [a b] (def a b) d 1 e 2 f 3)
#'user/f
user=> d
1
user=> e
2
user=> f
3
pkolloch on Sun, 25 Jul 2010
Because it is expanded at compile time, you can also use special forms as in full blown macros:

user> (do-template [a b] (def a b) d 1 e 2 f 3)
#'user/f
user> d
1
user> e
2
user> f
3