Skip to content

sanjibjan18/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:https://localhost:8000/cookie
http:https://localhost:8000/static
http:https://localhost:8000/mustache

About the resources:

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

Example:
curl -b test="\"hello/world\"" http:https://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:https://github.com/mojombo/mustache.erl

About

Random Webmachine resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published