request
Information about the current URL and associated pages can be used to output information about the current user's request to access the site.
Properties
Returns true if the request is being made from within the theme editor. Returns false if not.
You can use request.design_mode to control theme behavior depending on whether the theme is being viewed in the editor. For example, you can prevent session data from being tracked by tracking scripts in the theme editor.
The domain that the request is hosted on.
The protocol and host of the request.
The type of page being requested.
The path of the request.
Page document content orientation.
Example
Determine if user access is in editor mode
The request.design_mode is used to determine if you are currently in the Admin side of the online store's design, which is used to program the component's display behavior in different access modes.
{{#if request.design_mode}}
Now in online store design mode
{{#else/}}
Now in front-end user access mode
{{/if}}