Dynamicly generated websites in Erlang

J Scott Jaderholm jsj@REDACTED
Tue Mar 27 08:24:44 CEST 2001


Mickael Remond <mickael.remond@REDACTED> writes:

> J Scott Jaderholm (scott@REDACTED) wrote:
> > Hi,
> >
> > What options are there for dynamically generating websites in erlang?
> > I'm using INETS webserver right now, but it only serves static pages
> > afaik.  I'd like to be able to generate different pages based on
> 
> In fact, INETS can also generate dynamic content. You can execute Erlang
> code in INETS.
> 
> What you should look for is: mod_esi (Erlang Scripting Interface):
>   http://www.erlang.org/doc/r7b/lib/inets-2.5.3/doc/html/mod_esi.html
>   
> I wrote a french article on this topic and I could translate it if you
> are interested.

I'd definitely like that.  I read the Reference Manual but I'm not
quite grasping it from that.

I copied httpd_example.erl into my server_root, but the docs say to
copy the whole examples directory into /var/tmp.  I'm not sure why I
need to do this, but I did it anyway, and I get this when I run

5> start("/home/lispbliss/erl/inets/server_root/httpd_example.erl").
** exited: {undef,[{shell_default,start,
                                  ["/home/lispbliss/erl/inets/server_root/httpd_example.erl"]},
                   {shell,local_func,4},
                   {erl_eval,exprs,4},
                   {shell,eval_loop,2}]} **
6> 


I've searched usenet and the archive of this list and have found
*very* little on mod_esi, are there any other documents explaining
mod_esi?

Sincerely,
jsj




More information about the erlang-questions mailing list