1.5.8 • Published 7 years ago

express-hbsc v1.5.8

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

1.5.7

8 years ago

1.5.5

8 years ago

1.5.4

8 years ago

1.5.3

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.8

8 years ago

1.4.7

8 years ago

1.4.6

8 years ago

1.4.5

8 years ago

1.4.4

8 years ago

1.4.3

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago