Add scrumelo--base-dir

This should help with serving files and such, so I don't have to stay
in the right buffer to make everything work.
This commit is contained in:
Tom Willemse 2013-05-22 21:49:16 +02:00
parent a5eb8e2da5
commit 77eebc0361

View file

@ -18,6 +18,12 @@
(defvar scrumelo-project-file "~/projects/scrumelo/aeos.org" (defvar scrumelo-project-file "~/projects/scrumelo/aeos.org"
"The file containing the scrum backlog.") "The file containing the scrum backlog.")
(defvar scrumelo--base-dir
(if load-file-name
(directory-file-name load-file-name)
default-directory)
"The current directory.")
(defvar scrumelo-bootstrap-css-location (defvar scrumelo-bootstrap-css-location
"http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css"
"The location of the twitter bootstrap CSS file.") "The location of the twitter bootstrap CSS file.")
@ -155,7 +161,8 @@
(elnode-dispatcher (elnode-dispatcher
httpcon httpcon
`(("^/$" . scrumelo-backlog-page) `(("^/$" . scrumelo-backlog-page)
("^/js/scrumelo.js" . ,(elnode-make-send-file "js/scrumelo.js")) ("^/js/scrumelo.js" . ,(elnode-make-send-file
(concat scrumelo--base-dir "js/scrumelo.js")))
("^/stories/new/$" . scrumelo-new-story)))) ("^/stories/new/$" . scrumelo-new-story))))
(elnode-start 'scrumelo-handler :port 8028 :host "localhost") (elnode-start 'scrumelo-handler :port 8028 :host "localhost")