flm01/server/api/webmachine/priv/skel/src/skel_resource.erl

14 lines
336 B
Erlang
Raw Normal View History

2010-02-25 17:45:11 +00:00
%% @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}.