@nakedcreativity/cee-ms-node 0.3.38 → 0.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -220,7 +220,10 @@ function ceems(config) {
|
|
|
220
220
|
},
|
|
221
221
|
render: function (scope, hash) {
|
|
222
222
|
|
|
223
|
-
var filepath = Liquid.
|
|
223
|
+
var filepath = Liquid.evalValue(this.match[0], scope)
|
|
224
|
+
if(!filepath){
|
|
225
|
+
filepath = Liquid.lexical.parseLiteral(this.match[0])
|
|
226
|
+
}
|
|
224
227
|
var jsonData = JSON.parse(fs.readFileSync(filepath, 'utf8'))
|
|
225
228
|
|
|
226
229
|
var scopeObj = {}
|