外观
DRAFT etml-element
约 109 字小于 1 分钟
2025-10-01
etml-element 模型
etml-element
的基础元素模型用来定义基础的 etml 元素,相当于 html 中 element 的概念。
(defclass etml-element ()
((fmtstr :initarg :fmtstr :type string
:documentation "format string of element")
(data :initarg :data :initform nil
:type (satisfies etml-type-plistp)
:documentation "values used to format fmtstr.")
(style :initarg :style :initform nil
:type (satisfies etml-type-plistp)
:documentation "")
(separator :initarg :separator :initform ""
:documentation "")
(type :initarg :type :initform 'inline
:documentation "block or inline"))
:allow-nil-initform t)