get_remote
get_remote(url=, options=?, optional=?)A remote resource (options: headers, method, body, key). Errors propagate unless optional=true (then none and a warning).
Arguments#
| Argument | Type | Required |
|---|---|---|
url | string | yes |
options | map | no |
optional | bool | no |
Details#
- Kind: Function, implemented by fugo.
- Available in: every kind of template: layouts, partials, shortcodes and render hooks.
- Output: escaped like any value, unless marked
safe. - Site-bound: reads the site or the page being rendered; in a component, pass
page=or declare@__nh.