I've been working on a small contribution to the Yaws community and
this is my introduction email.
Yawn, for Yaws Nest", is a module implementing the arg_rewrite/1
function which offers some of Yapps habilities without the
It gets its input from the configuration file so I believe it's
simpler to set up. :)
Here's a sample example:
port = 80
listen = 0.0.0.0
docroot = www
appmods = <"/noe", erlyweb>
yawn = "/noe, appname = noe, docroot =
c:/erlyapps/noe/www, key1 = value1, key2 = value2"
arg_rewrite_mod = yawn
Yawn will switch the docroot and inject the key=value pairs (also
calling yaws_vdir after it's done).
That's about it! :)
I've set up a github repo for the module + sample yaws.conf + wiki
pages (with a step-by-step attempt at trying to install Yapps) over
Feel free to make suggestions (or better yet, fork the repository and
hack away). :)
This module only exists because I was able to study yapp, yaws_vdir
and yaws' source code.
A special thanks to the authors! ;)