From: Drew Crampsie Date: Thu, 2 Feb 2006 06:59:02 +0000 (-0800) Subject: adding string-attribute. X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/commitdiff_plain/9af22ce39633ff39d7ed05c4fb38a4f5c0f3b794 adding string-attribute. darcs-hash:20060202065902-5417e-9e0c385d740d37dcf0d0a7ed54de56ffc12dc9f3.gz --- diff --git a/src/standard-attributes.lisp b/src/standard-attributes.lisp index 1eb244f..492a06b 100644 --- a/src/standard-attributes.lisp +++ b/src/standard-attributes.lisp @@ -1,5 +1,20 @@ (in-package :lisp-on-lines) +;;;; Strings + +(defattribute string-attribute () + () + (:type-name string) + (:default-properties + :escape-html-p t)) + +(defdisplay object (:description (string string-attribute)) + (<:as-html "ASD") + (if (getp :escape-html-p) + (<:as-html (attribute-value object string)) + (<:as-is (attribute-value object string)))) + + (defattribute image () ())