def template_path(name=false)
      custom_path = custom_template_path(name)
      if custom_path
        custom_path
      else
        path = File.expand_path File.dirname(__FILE__)

        return "#{path}/../../templates/#{name}" if name

        "#{path}/../../templates"
      end
    end
def template_path(name=false)
      custom_path = custom_template_path(name)
      if custom_path
        custom_path
      else
        path = File.expand_path File.dirname(__FILE__)

        return "#{path}/../../templates/#{name}" if name

        "#{path}/../../templates"
      end
    end
Returns the path to the templates directory

 Returns string