Skip to content

Commit

Permalink
Update docs to include endpoint on tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Rook committed Sep 2, 2021
1 parent 5bd8b82 commit 8439df4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,23 @@ The url can be anywhere.
```antlers
{{ frosty:fetch url="/ajax/signup-form" }}
```
Or
```antlers
{{ frosty:fetch endpoint="/ajax/signup-form" }}
```

### Pulling in content from a route.
Routes must be a GET route and cannot currently accept parameters.
```antlers
{{ frosty:fetch route="ajax.signup-form" }}
```

Please note that the above two examples cannot be combined into a single tag call.
Please note that the above three examples cannot be combined into a single tag call.
```antlers
{{ frosty:fetch url="/ajax/signup-form" route="ajax.signup-form" }}
{{ frosty:fetch route="ajax.signup-form" url="/ajax/signup-form" }}
{{ frosty:fetch endpoint="/ajax/signup-form" url="/ajax/signup-form" route="ajax.signup-form" }}
{{ frosty:fetch route="ajax.signup-form" endpoint="/ajax/signup-form" url="/ajax/signup-form" }}
```
The url will always be used as the endpoint location.
The first found parameter will be used, parameters are checked in the order: endpoint, url, route.

### Using initial content then pulling new content.
This works with both the route and url options.
Expand Down

0 comments on commit 8439df4

Please sign in to comment.