def render_content_page!(uri_path)
      uri_path += "index" if URI.directory?(uri_path)

      content_match     = File.join(settings.content, "*")
      content_page_path = File.expand_path(uri_path, settings.content)
      return unless File.fnmatch(content_match, content_page_path)

      begin
        content_page = find_content_page(uri_path)
      rescue ContentPageNotFound
        return
      end

      view_template_path = File.expand_path(content_page.view, settings.views)

      begin
        engine = VIEW_TEMPLATE_ENGINES.fetch(Tilt[content_page.view])
      rescue KeyError
        message = "Cannot find registered engine for view template file -- #{view_template_path}"
        raise RegisteredEngineNotFound, message
      end

      begin
        halt send(engine, content_page.view.to_s.templatize, locals: { page: content_page })
      rescue Errno::ENOENT
        message = "Cannot find view template file -- #{view_template_path}"
        raise ViewTemplateNotFound, message
      end
    end
def render_content_page!(uri_path)
      uri_path += "index" if URI.directory?(uri_path)

      content_match     = File.join(settings.content, "*")
      content_page_path = File.expand_path(uri_path, settings.content)
      return unless File.fnmatch(content_match, content_page_path)

      begin
        content_page = find_content_page(uri_path)
      rescue ContentPageNotFound
        return
      end

      view_template_path = File.expand_path(content_page.view, settings.views)

      begin
        engine = VIEW_TEMPLATE_ENGINES.fetch(Tilt[content_page.view])
      rescue KeyError
        message = "Cannot find registered engine for view template file -- #{view_template_path}"
        raise RegisteredEngineNotFound, message
      end

      begin
        halt send(engine, content_page.view.to_s.templatize, locals: { page: content_page })
      rescue Errno::ENOENT
        message = "Cannot find view template file -- #{view_template_path}"
        raise ViewTemplateNotFound, message
      end
    end
Given a URI path, attempts to render a content page, if it exists, and halt

 @param [String] uri_path
 @raise [RegisteredEngineNotFound] Raised when a registered engine for the content page's
   view template cannot be found
 @raise [ViewTemplateNotFound] Raised when the content page's view template cannot be found