Init from 45d356c105
This commit is contained in:
6
webk/handlebarsHelpers/contains.js
Normal file
6
webk/handlebarsHelpers/contains.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = function(needle, haystack, options) {
|
||||
// needle = Handlebars.escapeExpression(needle);
|
||||
// haystack = Handlebars.escapeExpression(haystack);
|
||||
return (haystack.indexOf(needle) > -1) ? options.fn(this) : options.inverse(this);
|
||||
// return options.fn(this);
|
||||
};
|
Reference in New Issue
Block a user