From daeffd27b5e19e23792a4f4048dd713d493e8840 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Thu, 11 Feb 2016 22:06:43 -0500 Subject: [PATCH] Remove HB reference from generic helpers. --- dist/helpers/generic-helpers.js | 4 ++-- src/helpers/generic-helpers.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/helpers/generic-helpers.js b/dist/helpers/generic-helpers.js index 74c1073..6dcebd7 100644 --- a/dist/helpers/generic-helpers.js +++ b/dist/helpers/generic-helpers.js @@ -484,7 +484,7 @@ Generic template helper definitions for HackMyResume / FluentCV. compare: function(lvalue, rvalue, options) { var operator, operators, result; if (arguments.length < 3) { - throw new Error("Handlerbars Helper 'compare' needs 2 parameters"); + throw new Error("Template helper 'compare' needs 2 parameters"); } operator = options.hash.operator || "=="; operators = { @@ -514,7 +514,7 @@ Generic template helper definitions for HackMyResume / FluentCV. } }; if (!operators[operator]) { - throw new Error("Handlerbars Helper 'compare' doesn't know the operator " + operator); + throw new Error("Helper 'compare' doesn't know the operator " + operator); } result = operators[operator](lvalue, rvalue); if (result) { diff --git a/src/helpers/generic-helpers.coffee b/src/helpers/generic-helpers.coffee index 15529e4..5930985 100644 --- a/src/helpers/generic-helpers.coffee +++ b/src/helpers/generic-helpers.coffee @@ -469,7 +469,7 @@ GenericHelpers = module.exports = ### compare: (lvalue, rvalue, options) -> if arguments.length < 3 - throw new Error("Handlerbars Helper 'compare' needs 2 parameters") + throw new Error "Template helper 'compare' needs 2 parameters" operator = options.hash.operator || "==" operators = '==': (l,r) -> l == r @@ -481,7 +481,7 @@ GenericHelpers = module.exports = '>=': (l,r) -> l >= r 'typeof': (l,r) -> typeof l == r if !operators[operator] - throw new Error("Handlerbars Helper 'compare' doesn't know the operator "+operator) + throw new Error("Helper 'compare' doesn't know the operator "+operator) result = operators[operator]( lvalue, rvalue ) return if result then options.fn(this) else options.inverse(this)