1.0.0 • Published 7 years ago
koa-terraform v1.0.0
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
1.0.0
7 years ago