partially revert e8c7b37
This commit is contained in:
parent
e8c7b372e8
commit
0191a1556c
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "grunt-contrib-jst",
|
||||
"description": "Precompile Handlebars templates to JST file.",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"homepage": "https://github.com/gruntjs/grunt-contrib-jst",
|
||||
"author": {
|
||||
"name": "Tim Branyen",
|
||||
@ -38,4 +38,4 @@
|
||||
"keywords": [
|
||||
"gruntplugin"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,8 @@
|
||||
module.exports = function(grunt) {
|
||||
"use strict";
|
||||
|
||||
var _ = require("underscore");
|
||||
|
||||
var jst = function(source, filepath, namespace, templateSettings) {
|
||||
try {
|
||||
return namespace + "['" + filepath + "'] = " + _.template(source, false, templateSettings).source + ";";
|
||||
@ -21,7 +23,6 @@ module.exports = function(grunt) {
|
||||
|
||||
grunt.registerMultiTask("jst", "Compile underscore templates to JST file", function() {
|
||||
|
||||
var _ = require("underscore");
|
||||
var helpers = require("grunt-contrib-lib").init(grunt);
|
||||
var options = helpers.options(this, {namespace: "JST", templateSettings: {}});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user