add template auto complie when file change