From 6b1c9d7ae508c41848828939454945bf2addb994 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 21 Jan 2023 09:49:39 -0800 Subject: Refactor+Fix: with-hero-session macro; packaging and init --- pages.lisp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pages.lisp') diff --git a/pages.lisp b/pages.lisp index 72291e5..6d26565 100644 --- a/pages.lisp +++ b/pages.lisp @@ -1,5 +1,7 @@ ;;;; pages.lisp -- html generation functions for dnd +(in-package :dnd) + (defmacro with-page ((&key title) &body body) `(with-html-string (:doctype) @@ -15,7 +17,7 @@ (:form :method "POST" :action "/godess-shrine" (:label :for "NAME" "Enter the epithet thy hero shall be called:") (:input :name "NAME") - (:button :type "submit")))) + (:button :type "submit" "Pry To The Goddess")))) (defun doorkeeper () (with-page (:title "Tavern Door") @@ -23,11 +25,10 @@ (:form :method "POST" :action "/tavern-door" (:label :for "NAME" "Thy Hero's Appelation:") (:input :name "NAME") - (:button :type "submit")) + (:button :type "submit" "Enter")) (:h2 "Eh? Ye need to birth a new hero?") (:a :href "/godess-shrine" "Follow me..."))) (defun tavern (hero) (with-page (:title "A Bustling Tavern") - (:h1 "Aye! Welcome " (hero-name hero)) - ())) + (:h1 "Aye! Welcome " (hero-name hero)))) -- cgit v1.2.3