Please see the docs and example provided with this commit, especially docs/templatevars.md This bumps compat level to 4. Fixes: #76