Purpose#
StagingButton.liquid is a small helper rendered by the layout to support staging workflows.When the theme runs in the staging environment it:displays an Exit Staging button
renders Structure/Json.liquid to log a serialized view model in the browser console
Where it's used#
StagingButton.liquid is rendered by the main layout:{% render 'Structure\\StagingButton' with Root as model %}
Environment guard#
The template is active only when:model.GlobalData.Settings.TemplateEnvironment == "Staging"
Outside staging it outputs nothing.
Debug logging (Json helper)#
When staging is enabled, the template renders:{% render 'Structure\\Json' with Root as model %}
console.log(...) a serialized model
Notes#
The Exit Staging button navigates to /staging/cancel.
Keep this file lightweight and avoid adding app logic here.
Modified at 2026-05-12 09:02:15