Liquid Template Variables - request

From Spiffy Stores Knowledge Base

Revision as of 16:36, 16 September 2008 by Admin (talk | contribs) (→‎request.host)

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.