1.5.8 • Published 9 years ago

express-hbsc v1.5.8

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

ExpressJS Handlebar Middleware

This is a middleware for ExpressJS. It has inbuild handlebar helpers. Some of the noteable features are layout, partials, comparisons.

Install

npm install express-hbsc --save

Add to your middleware

var Handlebars = require("handlebars");
var express = require("express");

// Add custom helpers
Handlebars.registerHelper("")

var app = express();

// Pass Handlebars Instance;


app.set("views", "app/views");
app.set("view engine", "hbs");
var Hbsc = require("express-hbsc")(app, Handlebars);

app.engine("hbs", Hbsc.render);

Layouts & Partials

Any dir in your view path with dir name _partial and files in the dir will be registered as partial. Checkout the example app.

1.5.8

9 years ago

1.5.7

9 years ago

1.5.5

9 years ago

1.5.4

9 years ago

1.5.3

9 years ago

1.5.1

9 years ago

1.5.0

9 years ago

1.4.8

10 years ago

1.4.7

10 years ago

1.4.6

10 years ago

1.4.5

10 years ago

1.4.4

10 years ago

1.4.3

10 years ago

1.4.2

10 years ago

1.4.1

10 years ago

1.4.0

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago