Apologies for an even newbier question, but here ( http://osdir.com/ml/lisp.lib.tbnl.general/2006-10/msg00063.html) I'm told I should put a js file in the root directory of my website and then use code like:
(:html (:head (:link :href "myfile.css" :rel "stylesheet" :type "text/css") (:script :src "myfile.js" :type "text/javascript" nil)
to access it.
I installed hunchentoot via asdf. What's the root directory of my website? The directory containing the lisp file that calls start-server doesn't appear to be it.
"Lisp Newb" lispnewb@gmail.com writes:
(:html (:head (:link :href "myfile.css" :rel "stylesheet" :type "text/css") (:script :src "myfile.js" :type "text/javascript" nil)
I installed hunchentoot via asdf. What's the root directory of my website? The directory containing the lisp file that calls start-server doesn't appear to be it.
I don't believe that hunchentoot does anything special with setting up a root directory of your website. So, it's just whatever the directory of the Lisp process is. You can either change-directory to whatver you want the server root to be, or use fully qualified file names.
Cheers, Chris Dean
Hello nameless Lisp newb,
should put a js file in the root directory of my website and then use code
I installed hunchentoot via asdf. What's the root directory of my website? The directory containing the lisp file that calls start-server doesn't appear to be it.
Yeah, you'll have to define a handler first.
Read The Fine Tutorials:
http://myblog.rsynnott.com/2007/09/getting-started-with-hunchento.html
Leslie
Alas! I was indeed missing the javascript handler. It's working now. Thanks for the patience guys!
Nameless Lisp newb
2008/2/23, Leslie P. Polzer leslie.polzer@gmx.net:
Hello nameless Lisp newb,
should put a js file in the root directory of my website and then use
code
I installed hunchentoot via asdf. What's the root directory of my website? The directory containing the lisp file that calls start-server doesn't appear to be it.
Yeah, you'll have to define a handler first.
Read The Fine Tutorials:
http://myblog.rsynnott.com/2007/09/getting-started-with-hunchento.html
Leslie
-- My personal blog: http://blog.viridian-project.de/
tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel