Appmods are a way to let the application programmer take control over the URL path. They are implemented as Erlang modules. For example myappmod.erl
-module(myappmod).
-include("../../yaws_api.hrl").
-compile(export_all).
out(Arg) ->
Method = (Arg#arg.req)#http_request.method,
handle(Method, Arg).
handle(Method,Arg) ->
%% Do something
ok.
How should I carry out the compiling to make this appmod easily manageable?
In which directory of the yaws directory tree should I save the myappmod.erl and where does the myappmod.beam go after compiling?
How do generate the URL path to refer to this appmod?
All the help is welcomed!