Idea: optionally pass the data to `compileTemplate` — this way it will know which values are expected as functions and compile the template accordingly. A bit more complicated but solves the issue.