Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

make small, simple sites

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 external-libs
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .npmignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 package.json
README.md

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)
Something went wrong with that request. Please try again.