diff --git a/themes/basis/helpers/sample-helpers.js b/themes/basis/helpers/sample-helpers.js new file mode 100644 index 0000000..6027ee2 --- /dev/null +++ b/themes/basis/helpers/sample-helpers.js @@ -0,0 +1,32 @@ + +/** +Sample helper definitions for HackMyResume's "basis" example theme. +@license MIT. See LICENSE.md for details. +@module themes/basis/helpers/sample-helpers +*/ + +(function() { + + // Block helper function definitions. + var SampleHelpers = module.exports = { + + // A sample helper that returns the supplied value. + helperA: function(someVal, options) { + return someVal; + }, + + // Another sample helper that returns the supplied value. + helperB: function(title, options) { + return title; + }, + + // A sample block helper + helperC: function(lhs, rhs, options) { + if (lhs || rhs) { + return options.fn(this); + } + } + + }; + +}).call(this); diff --git a/themes/basis/theme.json b/themes/basis/theme.json index fa33924..ac06ab3 100644 --- a/themes/basis/theme.json +++ b/themes/basis/theme.json @@ -3,5 +3,6 @@ "description": "A theme that is a basis for other themes.", "author": "hacksalot (https://github.com/hacksalot)", "engine": "handlebars", - "message": "This theme contains default unstyled formats that can be used by other themes or as a starting point for a custom theme." + "message": "This theme contains default unstyled formats that can be used by other themes or as a starting point for a custom theme.", + "helpers": ["helpers/*.js"] }