added ability to track all files used for compiling a template and access it via the compiled function