Liquid Template Variables - request

From Spiffy Stores Knowledge Base

Revision as of 16:35, 16 September 2008 by Admin (talk | contribs) (New page: The liquid template variable ''request'' has the following attributes: == <code>request.host</code> == Returns the host name portion of the URL request. For example, if we go to http://...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The liquid template variable request has the following attributes:

request.host

Returns the host name portion of the URL request.

For example, if we go to http://storedemo.spiffystores.com, then the request.host returns

storedemo.spiffystores.com

request.remote_ip

Returns the IP address of the client accessing the page.