liquid-node
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -59,2 +59,6 @@ // Generated by CoffeeScript 1.7.1 | ||
Liquid.BlankFileSystem = require("./liquid/blank_file_system"); | ||
Liquid.LocalFileSystem = require("./liquid/local_file_system"); | ||
Liquid.Assign = require("./liquid/tags/assign"); | ||
@@ -82,2 +86,4 @@ | ||
Liquid.Include = require("./liquid/tags/include"); | ||
module.exports = Liquid; | ||
@@ -84,0 +90,0 @@ |
@@ -19,2 +19,3 @@ // Generated by CoffeeScript 1.7.1 | ||
this.registerFilters(Liquid.StandardFilters); | ||
this.fileSystem = new Liquid.BlankFileSystem; | ||
isSubclassOf = function(klass, ofKlass) { | ||
@@ -82,2 +83,9 @@ var _ref; | ||
Engine.prototype.registerFileSystem = function(fileSystem) { | ||
if (!(fileSystem instanceof Liquid.BlankFileSystem)) { | ||
throw Liquid.ArgumentError("Must be subclass of Liquid.BlankFileSystem"); | ||
} | ||
return this.fileSystem = fileSystem; | ||
}; | ||
return Engine; | ||
@@ -84,0 +92,0 @@ |
@@ -15,3 +15,3 @@ { | ||
"description": "Node.js port of Tobias Lütke's Liquid template engine.", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"license": "MIT", | ||
@@ -18,0 +18,0 @@ "homepage": "https://github.com/sirlantis/liquid-node", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1019507
108
2263
1