fetch - pfaciana/latte-js GitHub Wiki
{fetch} is used to retrieve files from the local file system, http, or ftp and display the contents.
The value of the file attribute is passed to Latte.prototype.getFile() method to get contents of included template. It is up to Latte user to override this method and provide file's text.
| Attribute | Required | Default | Description |
|---|---|---|---|
| file | Yes | n/a | The file, http or ftp site to fetch |
| assign | No | n/a | The template variable the output will be assigned to |
see also {fetch} in PHP Smarty documentation