patternpack
Version:
Build and Document Your Interface. Then Share the Code.
15 lines (11 loc) • 448 B
JavaScript
module.exports.register = function (Handlebars, options, params) {
"use strict";
var grunt = require("grunt")
var gruntfilePath = grunt.option("gruntfile") || ".";
var basePath = require("path").dirname(gruntfilePath);
var gruntFileConfig = basePath + "/gruntfileConfig.json";
var config = grunt.file.readJSON(gruntFileConfig);
Handlebars.registerHelper("cssFileName", function() {
return config.css.fileName + ".css";
})
};