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