Skip to content

Commit

Permalink
bring back the default site
Browse files Browse the repository at this point in the history
  • Loading branch information
vii committed Jun 13, 2009
1 parent fdef30e commit 53984b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/webapp/default-site.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(in-package #:tpd2.webapp)

(defsite *default-site*)
(setf *current-site* *default-site*)

7 changes: 5 additions & 2 deletions src/webapp/site.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(define-constant +site-customization-funcs+ '(page-head page-body-start page-body-footer) :test 'equalp)
(define-constant +site-customization-func-args+ '(title) :test 'equalp))

(defparameter *current-site* nil)
(defvar *current-site*)

(defmacro current-site ()
`*current-site*)
Expand Down Expand Up @@ -93,4 +93,7 @@
,(apply (,(concat-sym 'site- func) ,site) +site-customization-func-args+)))))))))
(def-runtime-funcs site))

site))))
site))))



1 change: 1 addition & 0 deletions teepeedee2.asd
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
(:file "names")
(:file "html-constants")
(:file "site")
(:file "default-site" :depends-on ("site" "webapp" "js-library"))
(:file "js-library" :depends-on ("html-constants" "page"))
(:file "actions" :depends-on ("page" "html-constants" "frame"))
(:file "channel" :depends-on ("page" "html-constants"))
Expand Down

0 comments on commit 53984b8

Please sign in to comment.