New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-ejs-static

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-ejs-static - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

demo/dev/layouts/default.ejs

10

demo/dev/data/data.json
{
"home": {

@@ -12,2 +12,3 @@ "meta": {

"about": {
"path_to_layout": "demo/dev/layouts/default.ejs",
"meta": {

@@ -21,3 +22,3 @@ "title": "About",

"work": {
"path_to_layout": "demo/dev/layouts/work.ejs",
"path_to_layout": "demo/dev/layouts/default.ejs",
"meta": {

@@ -31,2 +32,3 @@ "title": "Work",

"contact": {
"path_to_layout": "demo/dev/layouts/default.ejs",
"meta": {

@@ -58,3 +60,3 @@ "title": "Contact",

}
}
}

19

lib/data.js

@@ -11,3 +11,3 @@

// PRIVATE FUNCTIONS
//
//

@@ -17,3 +17,3 @@ // route data based on data type (string, object, or array)

// if path_to_data is a string
// if path_to_data is a string
if (typeof additional_data === 'string') {

@@ -100,10 +100,13 @@

//
// END PRIVATE FUNCTIONS
//
// END PRIVATE FUNCTIONS
grunt.log.debug('get_data(): executed and the current key is ' + key);
// get the data for this file
// get the data for this file
var this_file_data = files[key];
// add the current file name to the additional data
this_file_data.file_name = key;
// add any additional data specified in pages declaration json file

@@ -121,7 +124,7 @@ if (typeof this_file_data.path_to_data !== 'undefined') {

grunt.log.debug('the file data for ' + key + ' is ' + JSON.stringify(this_file_data, null, 2));
return this_file_data;
return this_file_data;
}
// end get the data
// end get the data
};
};
{
"name": "grunt-ejs-static",
"description": "Compile static html from ejs templates",
"version": "0.3.4",
"version": "0.3.5",
"homepage": "https://github.com/shaekuronen/grunt-ejs-static",

@@ -6,0 +6,0 @@ "author": {

@@ -308,2 +308,6 @@ # grunt-ejs-static

## Release History
### 0.3.5
* Added file_name variable to allow template extension.
* See discussion on [Github](https://github.com/shaekuronen/grunt-ejs-static/issues/2).
### 0.3.2

@@ -310,0 +314,0 @@ * Moved logic into modules.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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