Sounds like you're wasting your time trying to get this working with
just static HTML pages.  I think that it's possible, but you would
have to do a lot of really nasty javascript hackery to make the button
targets dynamic.  Alternatively, the HTML could be truely static and
pre-generated using a program written in your language of choice.  No
special software is needed for either route, but they both sound
painful and really more trouble than they're worth.

Your best bet is to create a dynamic web application which generates
these "day pages" on the fly based on a URL parameter (e.g. ?
day=20081110).  There are scads of tutorials out there on how to do
this sort of thing in various languages (particularly Java).  You
should have no lack of resources on that front...

Clojure can essentially do anything that Java can.  If you can run
Java on your server, you can run Clojure.  No need to install extra
software, just bundle the JAR with your application and call the
interpreter API pointing at your scripts.  With Clojure's interop
capabilities, you should be able to use *most* (if not all) Java web
frameworks.  The code may be a little less-than-Lispy, but that's just
the way Java was designed.

Daniel

On Nov 10, 3:56 pm, Mirko <[EMAIL PROTECTED]> wrote:
> Hello
>
> (I have some lisp and elisp background, but my html is rather poor,
> and java indistinguishable from zero)
>
> I want to do something quick and dirty with html and I am wondering if
> I can leverage my lisp knowledge
>
> I am publishing my daily log pages in html (using emacs muse
> +planner).  These daily log pages are html files of format
> yyyymmdd.html.
>
> On each page, I would like two buttons, one that would link to the
> previous page, one that would link to the following.  The wrinkle is
> that when I publish today's page, tomorrow's does not exist.  It will
> exist tomorrow, or maybe next monday if today is friday.  So, these
> buttons need a bit of intelligence.
>
> So, it seems to me that I would need to link the buttons with a bit of
> code that would
> - discern today's page name
> - see which is the previous day's page (just offseting by a day does
> not work in case of weekends or holidays), and open that page if
> clicked
> - be blank if there is no next days page, but work if there is a next
> days page.
>
> Not knowing anything about java, javascript, etc, I thought that this
> could could be javascript.  But, can it be in clojure?
>
> And if it can, does that mean that on the remote site where the web
> pages will be posted I will have to install some software?  Because if
> I have to, than I would probably have to go the java route (I am
> assuming that route does not require any software installation on most
> machines).
>
> I tried accessing clojure.org, but the page is taking forever to load.
>
> Thank you,
>
> Mirko
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to