Not sure  but all my .yaws files have at the top a definition for the module, such as:

<erl module="myfilename_yaws">  %% I give all my yaws modules an explicit name so Yaws doesn't give it a less meaningful name.  The _yaws part is simple my convention.
out(A) ->
ok.  %% do  nothing. 
</erl>

see if this gets the parser to realize it needs to get into gear ;-).

ke han



On Aug 29, 2006, at 3:53 PM, Dmitrii Dimandt wrote:

Well, I've installed Erlang and Yaws under SuSe 10 under latest VmWare Server under WinXP Pro SP2 :))

Both Erlang and Yaws work seemingly ok. However, as I follow steps in the documentation, Yaws doesn't parse .yaws files :(

Here is my setup:

    logdir = /usr/local/yaws/test/logs
    ebin_dir = /usr/local/yaws/test/ebin

    <server localhost>
        port = 81
        listen = 0.0.0.0
        docroot = /usr/loacl/yaws/test
        dir_listings = true
        dav = true
    </server>

When I run /usr/local/bin/yaws -i, it starts ok. The yaws' local site starts ok, I see the welcome page and the config page ok. However, as i navigate to http://127.0.0.1:81/index.yaws, I see the following page as an HTML page:

    <html>

        <h1> Yesssssss </h1>

        <erl>
            out(Arg) -> {html, "<h2> Hello again </h2>"}.
        </erl>

    </html>

is returned as

    Yesssssss

    out(Arg) -> {html, "
    Hello again
    "}.

Whatever can be wrong?
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list