Started on the standard attributes by adding an image display.
authorDrew Crampsie <drewc@tech.coop>
Thu, 12 Jan 2006 01:48:22 +0000 (17:48 -0800)
committerDrew Crampsie <drewc@tech.coop>
Thu, 12 Jan 2006 01:48:22 +0000 (17:48 -0800)
darcs-hash:20060112014822-5417e-f52ee8a2592f456c68add891ff109b948f6ce2e5.gz

lisp-on-lines.asd
src/standard-attributes.lisp [new file with mode: 0644]

index 598a1f7..ae3ef09 100644 (file)
@@ -21,6 +21,7 @@
                                       (:file "slot-presentations")
                                       (:file "slot-presentations/date")
                                       (:file "standard-display")
+                                      (:file "standard-attributes")
                                       (:file "relational-attributes"))
                          :serial t)
                 (:module :components
diff --git a/src/standard-attributes.lisp b/src/standard-attributes.lisp
new file mode 100644 (file)
index 0000000..10e3145
--- /dev/null
@@ -0,0 +1,18 @@
+(in-package :lisp-on-lines)
+
+(defattribute image ()
+  ())
+
+(defdisplay (:description (image image))
+  (<:img
+   :class (or (getp :class) "lol-image") 
+   :src (arnesi:strcat
+        (or (getp :prefix) "images/")
+        (escape-as-uri
+         (attribute-value object image)))))
+
+
+
+
+
+