Refactoring templater.rb to use files from template dir