mirror of
				https://github.com/JuanCanham/HackMyResume.git
				synced 2025-11-04 06:47:27 +00:00 
			
		
		
		
	Merge implicit and explicit generation paths, start emitting file transform & copy signals, fix various bugs, introduce new bugs, support better --debug outputs in the future.
		
			
				
	
	
		
			39 lines
		
	
	
		
			753 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			753 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
 | 
						|
/**
 | 
						|
Template helper definitions for Underscore.
 | 
						|
@license MIT. See LICENSE.md for details.
 | 
						|
@module handlebars-helpers.js
 | 
						|
 */
 | 
						|
 | 
						|
(function() {
 | 
						|
  var HANDLEBARS, _, helpers;
 | 
						|
 | 
						|
  HANDLEBARS = require('handlebars');
 | 
						|
 | 
						|
  _ = require('underscore');
 | 
						|
 | 
						|
  helpers = require('./generic-helpers');
 | 
						|
 | 
						|
 | 
						|
  /**
 | 
						|
  Register useful Underscore helpers.
 | 
						|
  @method registerHelpers
 | 
						|
   */
 | 
						|
 | 
						|
  module.exports = function(theme, opts, cssInfo, ctx, eng) {
 | 
						|
    helpers.theme = theme;
 | 
						|
    helpers.opts = opts;
 | 
						|
    helpers.cssInfo = cssInfo;
 | 
						|
    helpers.engine = eng;
 | 
						|
    ctx.h = helpers;
 | 
						|
    _.each(helpers, function(hVal, hKey) {
 | 
						|
      if (_.isFunction(hVal)) {
 | 
						|
        return _.bind(hVal, ctx);
 | 
						|
      }
 | 
						|
    }, this);
 | 
						|
  };
 | 
						|
 | 
						|
}).call(this);
 | 
						|
 | 
						|
//# sourceMappingURL=underscore-helpers.js.map
 |