Use gsub_file in app template