Socket
Socket
Sign inDemoInstall

solid

Package Overview
Dependencies
21
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    solid

Make small, simple sites


Version published
Maintainers
2
Install size
1.64 MB
Created

Readme

Source

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)

Keywords

FAQs

Last updated on 03 May 2012

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc