make small, simple sites.
$ npm install solid
Hello world example:
require'solid'appget "/"-> "<b>Hello world!</b>"
That's it. No, really.
A bit more contrived example can be found here, where you can see some of what you can do in solid currently.
Using a template engine
Currently only SASS, jade, and HAML are supported.
# Inside ./app.coffeesolid = require 'solid'solidappget '/'->@jade 'index'
/ Inside ./views/index.jade!!! 5htmlbody: p Hello world!
app variable passed to your function is NOT an instance of Express. app.app should give you the instance of Express should you want to modify something in Express directly.
$ npm test
This will run solid's
Abi Raja for the idea and contributions.
(Ordered roughly in terms of priority)
- Asynchronous request handlers (reading file, etc.)
- CSS Reset
- Other commonly used JS libraries other than jQuery
- Logging with noise levels (should be low-priority, basic method/path console logging already exists)
- Better 404 page (low priority)