Save templates as files