toisu-handlebars
toisu-handlebars is a handlebars wrapper for the TOISU! server micro-framework.
install
To install toisu-handlebars into your project, use:
npm install --save toisu-handlebars
usage
const http = ;const Toisu = ;const toisuHandlebars = ;const dbModule = ; const template = ` <!doctype html> <html> <head><title>Hello, world!</title></head> <body>{{bodyContent}}</body> </html>`; const app = ; // Put some template data on the context.app; // toisu handlebars compiles the template and returns a middleware function.app; http;