Imports
Use $.imports
to import variables from another template.
The property accepts a list of templates.
Example
Share variables to multiple template
Here a template exporting a function:
Functions.md
```pochoir-js
template.exports.fullname = () => {
return "John Doe";
};
```
I can import functions from the template below with $.imports
;
Anoter Template.md
---
author: "{{fullname()}}"
$.imports:
- "[[Functions]]"
---
Output:
Note.md
---
author: "John Doe"
---