Apprentice
Hey Web Frameworks!
YOU'RE FIRED!
The Apprentice makes it simple to get started creating an html and/or json web application in no time, with as little sugar as possible.
Install
npm install apprentice
Dependencies
- linchpin
npm install linchpin
Usage
var app =pin = ;pin;pin;pin;pin;apphttpServer;
Features
Response Macros
- text (body, status=200)
res.text is a shortcut to send a plain text response body back to the caller.
pin;
- json (body, status=200)
res.json is a shortcut to send a json document to the caller.
pin;
- html (body, status=200)
res.html is a shortcut to send a html document to the caller.
pin;
FAQ
How do I manage static assets
You can use filed:
pin;pinon 'GET/assets/*/*' { ; });