New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

solid

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid

Make small, simple sites

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
108
decreased by-14.96%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 03 May 2012

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc