Re: Thoughts on mod_lisp

From: Andras Simon (asimon_at_math.bme.hu)
Date: 10/09/04


Date: 09 Oct 2004 18:12:01 +0200

iamtheari@gmail.com (Ari Johnson) writes:

> Andras Simon <asimon@math.bme.hu> wrote in message news:<vcdu0t45mkx.fsf@csusza.math.bme.hu>...
> > iamtheari@gmail.com (Ari Johnson) writes:
> >
> > > Andras Simon <asimon@math.bme.hu> wrote in message news:<vcdy8ih5xip.fsf@csusza.math.bme.hu>...
> > But now I see that you meant PHP/JSP-like templates. In that case, you
> > could give aserve/webaction's clp a try. From the doc:
>
> That's one idea I'm pursuing. The idea there is that the majority of
> content is large blobs of text with occasional formatting. Wikis
> operate under this principle (by concentrating on the text and
> simplifying the formatting instructions) along with the principle that
> there is a direct relationship between the number of monkeys at the
> keyboard and the probability of recreating Shakespeare.
>
> What I really want is:
> 1. Partitioning between projects - with PHP I just write
> directory-portable code and put each project in its own directory

See the destination argument of webaction-project.

> 2. Partitioning between users - although less important since I will
> most likely be the only user writing Lisp-powered web pages on my
> server, it'd be nice to create separate users from my own account and
> use them to separate projects (this is not essential, just a
> nice-to-have thing)

If you really want this, I'm sure you'll be able to come up with a
scheme that works for you, no matter what approach (mod_lisp or
aserve) you use.

> 3. Seamless integration with rest of site - I still have PHP
> applications, and my resume is still an XSLT application; being able
> to run parts of my site with Lisp without having a crazy URL scheme in
> which all Lisp is relegated to a particular URL namespace
> (http://server/lisp/...) is essential

I'm afraid you'll have to deal with this problem even if you use
mod_lisp. I'm no apache guru (far from it!) but I think mod_rewrite is
your friend.

> 4. Good template language - I've seen some pretty bad template
> languages; also, writing templates in HTML and then inserting active
> template code makes more sense to me, as it is far easier to prototype
> HTML with a static file than it is if you have to recompile and reload
> after every change before you can see the changes

This is a very respectable opinion which I happen not to share. M-C-x is
just as easy as C-x C-s, and I find writing lhtml easier than writing
html. (Designers may not agree; but there's always phtml which will
parse their pages to lhtml. Though I must admit I've never tried this
approach.) But have a look at clp and see if you like it.

>
> > And if you want static pages to be served by Apache, you can put
> > aserve behind Apache via mod_proxy or mod_rewrite (or whatever it's
> > called) and do that. I have a site with this setup (no clp though),
> > and it has gathered a few million hits in the past 18 month or so with
> > no problems. My only (minor) gripe with it is that aserve doesn't see
> > where a request is really coming from.
>
> It's mod_proxy, which I haven't used before. See requirement 3 above
> for my reasoning against this approach.

See my reply to it.

>
> On a side note: Man, do I wish I still had access to a good Usenet
> server so I could post with less delay.

:-(

Andras



Relevant Pages

  • Re: why does screwed up source code work?
    ... I find this whole discussion a bit puzzling, because although it is clear that writing HTML has nothing to do with programming that's an objection to calling HTML writing programming. ...
    (alt.html)
  • Re: Beginning, Middle and End
    ... Arranging my day so that I am doing my writing when I am naturally ... I *am* a real writer, and I have never come close to ... maybe I can do html -- add a few more pages of paper ... Black Flag starts falling behind schedule, ...
    (rec.arts.sf.composition)
  • Re: [PHP] SPL
    ... foreach as $path){ ... // writing to some static file ... "Some men are born to greatness, some achieve greatness, ...
    (php.general)
  • utility functions within a class?
    ... I might be missing something obvious here, but I decided to experiment with writing a program that involves a class, so I'm somewhat new to this in Python. ... Specifically, I am writing a class that defines methods that wrap string arguments inside HTML elements, and ultimately creates and HTML page. ... First it will create a string with the proper DTD, then it will append the <head> element and the element, wrapped in the element. ...
    (comp.lang.python)
  • Re: command line vs gui
    ... Well, you have two choices as to what to do with html: ... > I would agree for a wysiwyg gui like Dreamweaver, ... Dreamweaver is a website maintenance tool, ... Writing is what Dreamweaver does as a sideline, ...
    (comp.os.linux.misc)