sarenji/solid

How to create an option to serve a static page?

Opened this issue · 0 comments

If I do this:

solid = require 'solid'

solid {port: 9001, cwd: __dirname}, (app) ->
   app.get "/", -> "<b>Hello world!</b>"

I serve the literal string "Hello world" in bold. However, what if I wanted solid to serve a page that's located in the static directory - what form would the app.get command need to be?