Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 352 Bytes

readme.md

File metadata and controls

25 lines (17 loc) · 352 Bytes

koa-ractive

Ractive components rendering in server

Installation

$ npm install koa-ractive

Example

var views = require('koa-ractive')
var path = require('path')
var router = require('koa-router')

app.use(views(path.join(__dirname, './templates')))
app.use(router(app))

app.get('/', function*(){
  this.render('home')
})