yaws

Thomas Lindgren thomas.lindgren@REDACTED
Tue Feb 12 13:53:00 CET 2002


For interesting extensions, or some inspiration, have a look at
http://www.aolserver.com

Seems like a natural application for Erlang, except it's written in ...
threaded TCL :-)

(Somebody has already done a plug-in http://www.smlserver.com, by the way.)

-- Thomas

-----Original Message-----
From: owner-erlang-questions@REDACTED
[mailto:owner-erlang-questions@REDACTED]On Behalf Of Klacke
Sent: den 12 februari 2002 13:38
To: Willem Broekema
Cc: erlang-questions@REDACTED
Subject: Re: yaws


On Tue, Feb 12, 2002 at 12:53:41PM +0100, Willem Broekema wrote:
> Claes Wikstrom wrote:
>  > Howdy folks,
>  >
>  > I've just started a little late-night-hack webserver project.
>  > I've come quite some distance in just a little while and it looks
>  > good.
>  >
>  > The reason I started was that
>  > I found myself in a position where I had to write a little dynamic
>  > content website and I discovered that php sucks bigtime.
>
> Right now you seem to create a template-based file-based web server.
>
> If you want to aim for something bigger, consider making it similar to
> Zope, an open-source web application server written in Python,

Actually it is allready an application server, it's just that
the pages that show up on yaws.hyber.org don't do anything more
fancy that including other files. Nothin there that plain ssi can't
do.

However, the erlang code that gets evaluated can do anything it wants.

> <http://zope.org>, by adding a persistent storage for Erlang terms, maybe
> using Mnesia? Can Mnesia store hierarchical data? In that case you can set
> the server up to let server.com/folder1/folder2/term refer to the Erlang
> term located in f1/f2. The storage can support transactions, undo etc (I'm
> sure I have read Mnesia supports that).

This already doable. I'll add some more fancy examples to make
this more clear.

>
> Right now the templates do not work well together with WYSIWYG HTML
> editors.

This is indeed correct, and maybe I should be using one of those since
Vlad pointed out that my HTML was bad, I may need it .... :-)

> Zope has solved this by using the attributes of standard HTML tags
> instead of new <erl> tags. In a separate XML namespace, template commands
> are included.
>
> See Zope's Template Attribute Language
>
<http://dev.zope.org/Wikis/DevSite/Projects/ZPT/TAL%20Specification%201.4>,
> which is part of the functionality of Zope Page Templates,
> <http://dev.zope.org/Wikis/DevSite/Projects/ZPT/FrontPage>. I think their
> solution is quite neat and elegant, better than the current <erl> syntax.
>
>


Ok, thanks, I'll take a look at those.




--
Claes Wikstrom                        -- Caps lock is nowhere and
Alteon WebSystems                     -- everything is under control
http://www.bluetail.com/~klacke
cellphone: +46 70 2097763




More information about the erlang-questions mailing list