throws 404 not found exception if template file is not found.