Browse files

""

git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@787 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information...
1 parent c2e2b4f commit cd63bee4b6c1a635d0c4fe90a9385900331527db @klacke committed Nov 26, 2004
Showing with 20 additions and 9 deletions.
  1. +1 −0 src/yaws_server.erl
  2. +3 −2 www/arg.yaws
  3. +13 −4 www/configuration.yaws
  4. +2 −2 www/session1.yaws
  5. +1 −1 www/stil.css
View
1 src/yaws_server.erl
@@ -1994,6 +1994,7 @@ ssi(File, Delimiter, Bindings, Dir, SC) ->
ets:insert(SC#sconf.ets,{Key,D, Mtime}),
ssi(File, Delimiter, Bindings, Dir, SC);
{error, Rsn} ->
+ error_logger:format("Failed to read/ssi file ~p~n", [FullPath]),
{error,Rsn}
end
end.
View
5 www/arg.yaws
@@ -16,7 +16,7 @@ supplied to the out/1 function.
<p> The #arg structure is a very important datastructure for the
yaws programmer. It is the main mechanism whereby the server can pass
data to the web application. There are several data items
-which is of interest to the webapplication, such as which headers
+which are of interest to the webapplication, such as which headers
were sent from the client, etc.
The #arg recored is defined in <tt>yaws_api.hrl</tt> and is defined as:
@@ -39,14 +39,15 @@ The #arg recored is defined in <tt>yaws_api.hrl</tt> and is defined as:
pid, %% pid of the yaws worker process
opaque, %% useful to pass static data
appmod_prepath, %% path in front of: <appmod><appmoddata>
+
pathinfo %% Set to 'd/e' when calling c.yaws for the request
%% http://some.host/a/b/c.yaws/d/e
}).
</pre>
</div>
<p> As we have seen is several previous examples, the <tt> out/1</tt> function
-defined in .yaws files, gets inviked with a single argument which is
+defined in .yaws files, gets invoked with a single argument which is
a #arg{} record, fitting the specific HTTP request being served.
View
17 www/configuration.yaws
@@ -20,9 +20,15 @@ out(A) ->
{alt,"SourceForge.net Logo"}]}},
" The Yaws SourceForge www page is ",
{a ,[{href,"http://sourceforge.net/projects/erlyaws/"}],
- "http://sourceforge.net/projects/erlyaws"}
- ]},
- {p,[], ["To cvs check out the latest source first install an ",
+ "http://sourceforge.net/projects/erlyaws"}]},
+
+ {p, [], ["Tested releases are downloadable from the yaws website download "
+ " directory, use a regular release unless you plan to hack yaws. "
+ "Regular releases are found at ",
+ {a, [{href, "http://yaws.hyber.org/download"}],
+ "http://yaws.hyber.org/download}"}]},
+
+ {p,[], ["To cvs check out the latest source first install an ",
{a, [{href,"http://www.erlang.org"}],"Erlang"},
" system, then do: "]},
box("
@@ -40,7 +46,7 @@ out(A) ->
{p,[], "Run ./configure"},
{p, [], [{tt, [], "make"} ,
- "(without install) will build the yaws system and ",
+ " (without install) will build the yaws system and ",
{tt, [], "make local_install"},
" does a local install at http://127.0.0.1:8000. This is the typical mode of operation"
" while either just trying out yaws, or hacking yaws. This will install "
@@ -110,3 +116,6 @@ out(A) ->
].
</erl>
+
+
+
View
4 www/session1.yaws
@@ -14,7 +14,7 @@ out(A) ->
Data = {ehtml,
{html,[],
["I just set yout cookie to ", Cookie, "Click ",
- {a, [{href,"session1.yaws"}], "here"},
+ {a, [{href,"session1.yaws"}], " here "},
"to revisit"]}},
CO = yaws_api:setcookie("baz",Cookie,"/"),
[Data, CO];
@@ -26,7 +26,7 @@ out(A) ->
{html,[],
[
"Click ",
- {a, [{href,"session1.yaws"}], "here"},
+ {a, [{href,"session1.yaws"}], " here "},
"to revisit",
{p, [], f("You have been here ~p times", [OP2#myopaque.times])},
{p, [], f("Your cookie is ~s", [Cookie])}]}},
View
2 www/stil.css
@@ -37,7 +37,7 @@ div.links {
background: green;
}
-div.box { border: solid; border-width: thin; width: 90%;
+div.box { border: solid; border-width: thin; width: 96%;
background: rgb(211, 211, 211) }
div.box pre {margin: 0.66em 0 0.33em 1%; padding: 0;}

0 comments on commit cd63bee

Please sign in to comment.