summaryrefslogtreecommitdiff
path: root/src/views/hero.lisp
blob: 31fa169fe8f65e3cb8b801a1274081e728d05900 (plain)
1
2
3
4
5
6
7
8
9
10
11
;;;; views/hero.lisp 

(in-package :dnd)

(defrender :list-item ((hero hero))
  (with-html
    (with-slots (name quest) hero
	(:p name "the" (hero-class hero) (hero-title hero)
            (when quest
              (:span  "who is off in on a quest:  ")
              (:span (render :inline quest)))))))