(in-package :lol) (defvar *lol-example-application* (make-instance 'cookie-session-application :url-prefix "/" :tal-generator (make-instance 'yaclml:file-system-generator :cachep t :root-directories (list *ucw-tal-root*)) :www-roots (list (merge-pathnames "./" *ucw-tal-root*)) :debug-on-error t)) (defentry-point "reddit" (:application *lol-example-application*) () (call 'front-page)) (defcomponent front-page (simple-window-component) () (:default-initargs :javascript "/dojo/dojo.js")) (defmethod render ((self front-page)) (with-component (self) (<:h1 (<:as-html "Lisp on Lines : Reddit Example")) ( :key #'score)) (defattribute link-attribute () () (:type-name link)) (defdisplay (:description (link link-attribute)) (<:a :href (url object) (<:as-html (title object)))) (defattribute score-buttons () () (:type-name score-buttons)) (defdisplay (:description (score score-buttons)) (