Skip to content

dreverri/webmachine_demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Random Webmachine resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published