Liquid Template Variables - request: Difference between revisions

From Spiffy Stores Knowledge Base
Jump to: navigation, search
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://...
 
Admin (talk | contribs)
Line 5: Line 5:
Returns the host name portion of the URL request.
Returns the host name portion of the URL request.


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


<pre>storedemo.spiffystores.com</pre>
<pre>storedemo.spiffystores.com</pre>

Revision as of 17:36, 16 September 2008

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.