Skip to content

Instantly share code, notes, and snippets.

@DylanPiercey
Last active June 18, 2016 02:22
Show Gist options
  • Save DylanPiercey/78ea0a26ccfa4c7e7256673412547bfc to your computer and use it in GitHub Desktop.
Save DylanPiercey/78ea0a26ccfa4c7e7256673412547bfc to your computer and use it in GitHub Desktop.
var Express = require('express')
var Rill = require('rill')
// Setup express app.
var expressApp = Express()
expressApp.use(...)
expressApp.get('/', ...)
// Setup rill app.
var rillApp = Rill()
rillApp.use(...)
rillApp.get('/rill-page', ...)
// Mount rill app inside of express app.
expressApp.use(rillApp.handler())
// Start express app.
expressApp.listen(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment