kitajchuk / node-squarespace-server

DEPRECATED! A local Squarespace development server in node.js.
MIT License
186 stars 26 forks source link

.if statement "or" operator crashing server #150

Closed ghost closed 8 years ago

ghost commented 8 years ago

Looks like using Squarespace .if statement operators are crashing the server returning the following error. The piece of code is: {.if categoryFilter || tagFilter}

/usr/local/lib/node_modules/node-squarespace-server/node_modules/node-squarespace-jsont/lib/jsontemplate.js:291
            var value = context[name];
                               ^

TypeError: Cannot read property 'categoryFilter || tagFilter' of null
kitajchuk commented 8 years ago

Yeah, I know about this one. It's an issue logged here for the jsont module:

https://github.com/NodeSquarespace/node-squarespace-jsont/issues/21

kitajchuk commented 8 years ago

Going to close this one here since it can be handled on the jsont modules end.