Template files with script