;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; ;;; Copyright (c) 2009 by the authors. ;;; ;;; See LICENCE for details. (in-package :hu.dwim.presentation) ;;;;;; ;;; tree-level/widget (def (component e) tree-level/widget (standard/widget collapsible/component) ((path nil :type component) (previous-sibling nil :type component) (next-sibling nil :type component) (descendants nil :type component) (node nil :type component))) (def render-xhtml tree-level/widget (bind (((:read-only-slots path previous-sibling next-sibling descendants node) -self-))
> ") (render-component next-sibling))>
)> ,(when (expanded-component? -self-) (render-component descendants)
) ,(render-component node)>))