harttle / liquidjs

A simple, expressive, safe and Shopify compatible template engine in pure JavaScript.
https://liquidjs.com
MIT License
1.52k stars 238 forks source link

globals being overwrite by Express.js #531

Closed YahangWu closed 2 years ago

YahangWu commented 2 years ago

Hi,

I have an object called settings in globals, and when I call res.render(parentTemplate);, the settings is being overwrite by Express.js.

In the child template that is used in parentTemplate with {% render childTemplate.liquid %}, the globals settings can be accessed.

Is there a way that I can prevent this to happen?

harttle commented 2 years ago

Do you have a minimal repro snippet, or project? So I can help you debug what's actually happenning.