solid
make small, simple sites.
Installation
$ 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.coffee solid = require 'solid'solid appget '/'-> @jade 'index'
/ Inside ./views/index.jade !!! 5html body: p Hello world!
App
The 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.
Running tests
$ npm test
This will run solid's mocha
tests.
Contributors
Abi Raja for the idea and contributions.
TODO
(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)