Repo get templte function