Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Random Webmachine resources
branch: master

This branch is even with dreverri:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ebin
priv
src
.gitignore
Makefile
README
rebar
rebar.config
start.sh

README

Random Webmachine resources:

To start:
./start.sh

Resources available:
http://localhost:8000/cookie
http://localhost:8000/static
http://localhost:8000/mustache

About the resources:

Cookies (cookie_resource.erl):
Prints out all cookies and their values

Example:
curl -b test="\"hello/world\"" http://localhost:8000


Static (static_resource.erl):
Reads and outputs "priv/www/static.html" 


Mustache (mustache_resource.erl):
Renders output based on a mustache template.
a. View - src/mustache_template.erl
b. Template - ebin/mustache_template.mustache

More about mustache: http://github.com/mojombo/mustache.erl
Something went wrong with that request. Please try again.