Provides access to to information inside the HTTP request object.
Returns the HTTP host.
{{ request.host }}
You are currently browsing: {{ request.host }}
Returns the path to the current page.
{{ request.path }}
You are currently browsing: {{ request.path }}
Provides access to Get query parameters from the URL.
{{ request.params }}
If the current URL contains a query parameter such as ?foo=bar
, the following code:
{{ request.params["foo"] }}
Would return the valuebar
.