Is there a way to define variables in one template that can be used across different templates?
eg can the tax brackets personal taxes for calender year 2018 be defined in one place and used in other places? If yes, how can I achieve this?
Same thing with custom functions: is it possible to make one own’s functions (eg IsLeapYear) in one spot and then use that function by calling it in other templates?
For this you’ll have to set the template as a reconciliation.
Once this is done, you can use the following syntax to fetch variables created in the reconciliation template:
period.reconciliations..custom.some.thing
The handle is defined in the reconciliation template as well. This should allow you to use variables from one template in other templates.