class Middleman::Base

def template_exists?(path, renderer=nil)

Convenience function to discover if a tempalte exists for the requested renderer (haml, sass, etc)
def template_exists?(path, renderer=nil)
  template_path = path.dup
  template_path << ".#{renderer}" if renderer
  File.exists? File.join(options.views, template_path)
end