summaryrefslogtreecommitdiff
path: root/src/views/hero.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/hero.lisp')
-rw-r--r--src/views/hero.lisp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/views/hero.lisp b/src/views/hero.lisp
new file mode 100644
index 0000000..7387901
--- /dev/null
+++ b/src/views/hero.lisp
@@ -0,0 +1,11 @@
+;;;; views/hero.lisp
+
+(in-package :dnd)
+
+(defrender :list-item ((hero hero))
+ (with-html
+ (with-slots ((name campaign) hero)
+ (:p name "the" (hero-class hero) (hero-title hero)
+ (when campaign
+ (:span "who is off in the campaign")
+ (:span (render :inline campaign)))))))