class Middleman::Templates::Base

def generate_bundler

def generate_bundler
  if options[:bundler]
    template "shared/Gemfile.tt", File.join(location, "Gemfile")
    
    say_status :run, "bundle install"
    print `cd #{location} && "#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" install`
  end
end

def generate_rack

def generate_rack
  if options[:rack]
    template "shared/config.ru", File.join(location, "config.ru")
  end
end