fn requiredFilename or URL to fetch. Required - if empty, include returns nothing. For HTTP types this is the URL (a literal URL_PARAMETERS in it is replaced with the current query string); for file types (site, fileman, readfile) it is a path within the chosen file area.
type optional default httpWhere or how to fetch fn. Default http. HTTP fetch: http, ajax. HTTP methods (send data and headers): GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD. Local file read: site, fileman, readfile. An unknown type returns nothing.
headers optionalRequest headers as a JSON object, e.g. built with jsonasoc. Used for the HTTP-method types. Empty means no extra headers.
data optionalRequest body sent with POST, PUT, DELETE, PATCH and similar methods. Empty means no body.
err optionalText returned instead of the response when the request fails. Inside it the token _#status is replaced with the HTTP status code and _#errmsg with the error message. Empty means a failed request returns an empty string.
[{include:}]
[{include:notes.txt:badtype}]
{include:https#://www.example.com/snippet.html}
{include:https#://api.example.com/v1/lists/42/subscribers?per_page=500:GET:{jsonasoc:Content-Type:application/json:key:API_KEY}}
{include:https#://api.example.com/v1/items:POST:{jsonasoc:Content-Type:application/json}:{jsonarray:title:Hello}}
{include:https#://api.example.com/v1/data:GET:::Could not load data (HTTP _#status: _#errmsg)}
{include:disclaimer.html:fileman}
{include:https#://www.example.com/render.php?URL_PARAMETERS}