Adds a way to detect if added template is from a file