Skip to content

Instantly share code, notes, and snippets.

@stevan
Created March 6, 2012 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevan/1982451 to your computer and use it in GitHub Desktop.
Save stevan/1982451 to your computer and use it in GitHub Desktop.
-module(mydemo_resource).
-export([init/1, to_html/2]).
-include_lib("webmachine/include/webmachine.hrl").
init(Config) ->
{ok, undefined}.
to_html(ReqData, State) ->
{"<html><body>Hello, new world</body></html>", ReqData, State}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment