Update template.rb to use Guard