fn requiredFilename or URL to fetch. Required - if empty, include returns nothing. For http and ajax this is the URL (a literal URL_PARAMETERS in it is replaced with the current query string); for fileman it is a path inside the File Manager directory of the slice, such as parts/menu.html.
type optional default httpWhere or how to fetch fn. Default http. HTTP fetch: http and ajax use GET, or POST when data is given; ajax adds the X-Requested-With header. HTTP methods (send data and headers): GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD. Local file read: fileman. readfile and site were removed in November 2026 and print nothing. An unknown type returns nothing.
headers optionalRequest headers as a JSON object, e.g. built with jsonasoc. Used by every HTTP type - http and ajax too. Empty means no extra headers.
data optionalRequest body. With the method types it is sent as is; with http or ajax a non-empty body turns the request into a POST. When the headers set no Content-Type, the body is sent as a form (application/x-www-form-urlencoded). Empty means no body.
err optionalText returned instead of the response when the request fails (no answer, or a status other than 2xx). Inside it _#status is replaced with the HTTP status code (empty when no answer came) and _#errmsg with a short message - HTTP and the status, or the reason the request got no answer; the body of the failed answer is never put in. A colon inside err must be written as #: or it ends the parameter. 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 (_#errmsg)}
{include:disclaimer.html:fileman}
{include:https#://www.example.com/render.php?URL_PARAMETERS}