Source

dnsmachine / src / dnsmachine_resource.erl

Full commit
%% @author author <author@example.com>
%% @copyright YYYY author.
%% @doc Example webmachine_resource.

-module(dnsmachine_resource).
-export([init/1, to_html/2]).

-include_lib("webmachine/include/webmachine.hrl").

init([]) -> {ok, undefined}.

to_html(_ReqProps, State) ->
    {"<html><body>Hello, new world</body></html>", State}.