We should compile the template, not the file location. Fixed.