summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-06-23 18:20:09 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-06-23 18:20:09 +0200
commitd58e4b66b9ed2118d47947ea4fb960d7d7ca0620 (patch)
tree0dafbd69e88a3ec3cded59ded2e00cf4cf8cfcf5
parent4058f72817bc4e268eab3bff8f43055343f148e6 (diff)
Do not activate a section for null? contexts.
-rwxr-xr-xjson-template.s6l2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-template.s6l b/json-template.s6l
index 7d88833..06a591b 100755
--- a/json-template.s6l
+++ b/json-template.s6l
@@ -256,7 +256,7 @@
context))))]
[(section? thing)
(let ([context (resolve-path stack (name->path (section-name thing)))])
- (if context
+ (if (and context (not (null? context)))
(expand-template (section-body thing)
(cons context stack)
default-formatter)