aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStuart Sierra <mail@stuartsierra.com>2009-06-23 13:57:35 -0400
committerStuart Sierra <mail@stuartsierra.com>2009-06-23 13:57:35 -0400
commit7770c0088b699b86aec53545c29bc5236e72da73 (patch)
tree2edfb7d1bf796fe86f97902d41f5064d3d0c7bb0 /src
parent49e33ef38a3a44197b34d3127f7eea304b9b518f (diff)
templace.clj: restored license info & ns doc string
Diffstat (limited to 'src')
-rw-r--r--src/clojure/contrib/template.clj28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/clojure/contrib/template.clj b/src/clojure/contrib/template.clj
index 72eac3c2..748ad4a4 100644
--- a/src/clojure/contrib/template.clj
+++ b/src/clojure/contrib/template.clj
@@ -1,4 +1,30 @@
-(ns clojure.contrib.template
+;;; template.clj - anonymous functions that pre-evaluate sub-expressions
+
+;; By Stuart Sierra, http://stuartsierra.com/
+;; June 23, 2009
+
+;; Copyright (c) Stuart Sierra, 2009. All rights reserved. The use
+;; and distribution terms for this software are covered by the Eclipse
+;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
+;; which can be found in the file epl-v10.html at the root of this
+;; distribution. By using this software in any fashion, you are
+;; agreeing to be bound by the terms of this license. You must not
+;; remove this notice, or any other, from this software.
+
+;; CHANGE LOG
+;;
+;; June 23, 2009: complete rewrite, eliminated _1,_2,... argument
+;; syntax
+;;
+;; January 20, 2009: added "template?" and checks for valid template
+;; expressions.
+;;
+;; December 15, 2008: first version
+
+
+(ns #^{:author "Stuart Sierra"
+ :doc "Macros that expand to repeated copies of a template expression."}
+ clojure.contrib.template
(:require [clojure.contrib.walk :as walk]))
(defn apply-template