Skip to content

Instantly share code, notes, and snippets.

View SeanJM's full-sized avatar

Sean MacIsaac SeanJM

  • Sean J MacIsaac
  • Montreal, QC
View GitHub Profile
@SeanJM
SeanJM / math.js
Last active November 14, 2017 19:58 — forked from FrankFang/math.js
Handlebars Math.
const handlebars = require("handlebars");
const operators = {
"+": (a, b) => a + b,
"-": (a, b) => a - b,
"*": (a, b) => a * b,
"/": (a, b) => a / b,
"%": (a, b) => a % b
};
handlebars.registerHelper("math", function (a, op, b) {