Skip to content
This repository has been archived by the owner on Jul 5, 2019. It is now read-only.

Commit

Permalink
improve readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Mar 26, 2015
1 parent daed52a commit fb80a9f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions readme.md
Expand Up @@ -4,6 +4,19 @@ A simple plugin to get information about your users location.

Put the geo folder in your craft plugins folder.

```
The following will cache the users location from their ip, so subsequent
api calls are not made, but just looked up in the cache:
{% set data = craft.geo.info(true) %}
which is the same as:
{% set data = craft.geo.info() %}
An Api call is made on every page view:
{% set data = craft.geo.info(false) %}
You can then access the data like this:
{{ data.country_code }}
```
Variables available in craft twig templates:

```
Expand Down

0 comments on commit fb80a9f

Please sign in to comment.