summaryrefslogtreecommitdiff
path: root/src/render.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-03-06 20:06:19 -0800
committercolin <colin@cicadas.surf>2023-03-06 20:06:19 -0800
commiteea0da373349349b4d25dd4bc116a9c9eb04fb98 (patch)
treeb54c75e1a4007bfcd538887c0b52cd0ba2c5e4d1 /src/render.lisp
parent187fce76197031dba1112bd6023b41166f039f3e (diff)
Add: basic page stub to view an adventure
Diffstat (limited to 'src/render.lisp')
-rw-r--r--src/render.lisp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/render.lisp b/src/render.lisp
index 140e1ec..71f07b4 100644
--- a/src/render.lisp
+++ b/src/render.lisp
@@ -14,10 +14,12 @@ be a keyword for usin in EQL method specializers."))
(defmacro with-page ((&key title) &body body)
"A helper macro fordefining some standard page boilerplate."
- `(with-html-string
- (:doctype)
- (:html
- (:head
- (:title ,title))
- (:body
- ,@body))))
+ (let ((title-var (gensym)))
+ `(let ((,title-var ,title))
+ (with-html-string
+ (:doctype)
+ (:html
+ (:head
+ (:title ,title-var))
+ (:body
+ ,@body))))))