grunt-carpenter
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "grunt-carpenter", | ||
"description": "Build static sites from markdown and html", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"homepage": "https://github.com/TxSSC/grunt-carpenter", | ||
@@ -31,13 +31,13 @@ "author": { | ||
"dependencies": { | ||
"marked": "~0.2.8", | ||
"mustache": "~0.7.2" | ||
"marked": "0.2.8", | ||
"mustache": "~2.2.1" | ||
}, | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.6.0", | ||
"grunt-contrib-clean": "~0.4.0", | ||
"grunt-contrib-nodeunit": "~0.2.0", | ||
"grunt": "~0.4.1" | ||
"grunt-contrib-jshint": "~1.0.0", | ||
"grunt-contrib-clean": "~1.0.0", | ||
"grunt-contrib-nodeunit": "~0.4.1", | ||
"grunt": "~0.4.5" | ||
}, | ||
"peerDependencies": { | ||
"grunt": "~0.4.1" | ||
"grunt": "~0.4.5" | ||
}, | ||
@@ -44,0 +44,0 @@ "keywords": [ |
@@ -103,8 +103,10 @@ /** | ||
function compileTemplates(p) { | ||
var content, templates = {}, | ||
var templates = {}, | ||
files = grunt.file.expand({ cwd: p }, "**/*.{html,mustache}"); | ||
files.forEach(function(file) { | ||
content = grunt.file.read(path.join(p, file)); | ||
templates[file] = Mustache.compile(content); | ||
templates[file] = grunt.file.read(path.join(p, file)); | ||
// Cache template | ||
Mustache.parse(templates[file]); | ||
grunt.verbose.write("Compiled template " + path.join(p, file)); | ||
@@ -200,7 +202,7 @@ }); | ||
data = grunt.util._.merge(data, rData); | ||
data.content = template(data); | ||
data.content = Mustache.render(template, data); | ||
return layout(data); | ||
return Mustache.render(layout, data); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11131
219
+ Addedmarked@0.2.8(transitive)
+ Addedmustache@2.2.1(transitive)
- Removedmarked@0.2.10(transitive)
- Removedmustache@0.7.3(transitive)
Updatedmarked@0.2.8
Updatedmustache@~2.2.1