Complete replace template files