Closed YahangWu closed 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.
settings
globals
res.render(parentTemplate);
In the child template that is used in parentTemplate with {% render childTemplate.liquid %}, the globals settings can be accessed.
parentTemplate
{% render childTemplate.liquid %}
Is there a way that I can prevent this to happen?
Do you have a minimal repro snippet, or project? So I can help you debug what's actually happenning.
Hi,
I have an object called
settings
inglobals
, and when I callres.render(parentTemplate);
, thesettings
is being overwrite by Express.js.In the child template that is used in
parentTemplate
with{% render childTemplate.liquid %}
, the globalssettings
can be accessed.Is there a way that I can prevent this to happen?