koa-terraform

1.0.0 • Public • Published

koa-terraform

Use Chloi's Terraform layout engine with Koa

!!!Very raw!!!

API

koaTerraform(root: String, globals: Object) => (context: Koa.Context, next: () => Promise) => void;

Supply the root path and globals

Koa.Context.render(template: String, locals: Object) => Promise;

Supply the template name and locals.

View Data merging order

viewData = locals <= ctx.state <= globals

Package Sidebar

Install

npm i koa-terraform

Weekly Downloads

10

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vsviridov