|
@@ -14,6 +14,7 @@ any return value other than nil indicates the injection should be added."
|
14
|
14
|
(push result (getf *injections* location))))
|
15
|
15
|
|
16
|
16
|
(defun find-injections (content)
|
|
17
|
+ "Iterate over *INJECTIONS* collecting any that should be added to CONTENT."
|
17
|
18
|
(flet ((injections-for (location)
|
18
|
19
|
(loop for (injection predicate) in (getf *injections* location)
|
19
|
20
|
when (funcall predicate content)
|
|
@@ -35,11 +36,3 @@ any return value other than nil indicates the injection should be added."
|
35
|
36
|
(compile-template :common-lisp-backend file))
|
36
|
37
|
(do-files (file (app-path "themes/") "tmpl")
|
37
|
38
|
(compile-template :common-lisp-backend file)))
|
38
|
|
-
|
39
|
|
-;; DOCUMENTATION
|
40
|
|
-;; A theme directory should be named after the theme and contain *.tmpl files
|
41
|
|
-;; that define the following functions in a coleslaw.theme.$NAME namespace.
|
42
|
|
-;; Required templates:
|
43
|
|
-;; {template base}
|
44
|
|
-;; {template post}
|
45
|
|
-;; {template index}
|