Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-carpenter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-carpenter - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

16

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc