1.3.3 • Published 9 years ago

rview v1.3.3

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

rview

Build Status Code Climate Code Coverage npm Version JS Standard

Remote view server.

Installation

$ npm install rview --save

Usage

#!/usr/bin/env node

/**
 * This is an example to invoke rview server
 */
'use strict'

const rview = require('rview')
const co = require('co')

co(function * () {
  // Setup server for remote view
  yield rview({
    // Define Views
    'user': {
      profile: co.wrap(function * userProfile (ctx) {
        ctx.body = `
<!DOCTYPE html><html><!-- ... --></html>
`
      })
    }
  }).listen(3000)
}).catch((err) => console.error(err))

License

This software is released under the MIT License.

Links

1.3.3

9 years ago

1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.10

9 years ago

1.1.9

9 years ago

1.1.8

9 years ago

1.1.7

9 years ago

1.1.6

9 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.1

10 years ago