Allow definition of unbound template variables.
diff --git a/template.lisp b/template.lisp
index 5e52ff9..8bc276d 100644
--- a/template.lisp
+++ b/template.lisp
@@ -67,8 +67,10 @@
bindings)
,@body))))
-(defmacro define-template-var (name value &optional doc)
- `(defvar ,(template-var-key name) ,value ,doc))
+(defmacro define-template-var (name &optional (value nil value-p) doc)
+ (if value-p
+ `(defvar ,(template-var-key name) ,value ,doc))
+ `(defvar ,(template-var-key name)))
;; Template reader