solid

0.2.1 • Public • Published

solid Build Status

make small, simple sites.

Installation

$ npm install solid

Hello world example:

require('solid') (app) ->
  app.get "/"-> "<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 (app) ->
  app.get '/'->
    @jade 'index'
/ Inside ./views/index.jade
 
!!! 5
html
  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)

Readme

Keywords

none

Package Sidebar

Install

npm i solid

Weekly Downloads

48

Version

0.2.1

License

none

Last publish

Collaborators

  • ryansolid
  • davedbase