From vamlists@gmail.com Mon Oct 23 08:57:29 2006 From: Vamsee Kanakala To: tbnl-devel@common-lisp.net Subject: [hunchentoot-devel] How to use/generate/access javascript/css? Date: Mon, 23 Oct 2006 18:27:33 +0530 Message-ID: <453CBC3D.706@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3616736825749560736==" --===============3616736825749560736== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi all, Sorry for the newbie questions, I'm curious as to how people working with tbnl/hunchentoot create/maintain their javascript and css files. If you use js/css generators, what are those (I know of only parenscript). If I'm using cl-who to generate my html, how can I include a .css or .js file in this code (or, where do I need to place these files to be accessible by hunchentoot? TIA, Vamsee. --===============3616736825749560736==-- From tobia.conforto@linux.it Mon Oct 23 10:50:39 2006 From: Toby To: tbnl-devel@common-lisp.net Subject: Re: [hunchentoot-devel] How to use/generate/access javascript/css? Date: Mon, 23 Oct 2006 16:50:31 +0200 Message-ID: <20061023145031.GB3038@localhost.localdomain> In-Reply-To: <453CBC3D.706@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8012271573448134857==" --===============8012271573448134857== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Vamsee Kanakala wrote: > Sorry for the newbie questions, I'm curious as to how people working > with tbnl/hunchentoot create/maintain their javascript and css files. I mostly use static css and js files. I put them in the root directory of my website and then create a handler for those specific extensions*. If I have more than a few I simply put them into css/ and js/ folders. To include them, just generate the relevant HTML code: (:html (:head (:link :href "myfile.css" :rel "stylesheet" :type "text/css") (:script :src "myfile.js" :type "text/javascript" nil) ... The last nil creates which works better than