Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
/ Statamic-Fetch Public archive

Temporary replacement for Statamic's get_post plugin

Notifications You must be signed in to change notification settings

pixelfear/Statamic-Fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Fetch

Temporary replacement for Statamic's get_post plugin

Usage

Assuming a URL of: /my-url?foo=bar

{{ fetch key="foo" }}
Outputs: bar
{{ fetch key="baz" }}
Outputs: false

In a conditional:

{{ if {fetch key="foo"} }}
  Yup.
{{ else }}
  Nope
{{ endif }}

Wanna do POSTs?

{{ fetch key="foo" type="post" }}
{{ fetch key="foo" method="post" }}

You can use method or type. Whatever floats your boat.

About

Temporary replacement for Statamic's get_post plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages