flm01/server/api/webmachine/priv/skel/src/skel_resource.erl
Bart Van Der Meerssche 3a28838b29 change repository layout
2010-07-07 16:37:03 +02:00

13 lines
336 B
Erlang

%% @author author <author@example.com>
%% @copyright YYYY author.
%% @doc Example webmachine_resource.
-module(skel_resource).
-export([init/1, to_html/2]).
-include_lib("webmachine/include/webmachine.hrl").
init([]) -> {ok, undefined}.
to_html(ReqData, State) ->
{"<html><body>Hello, new world</body></html>", ReqData, State}.