code: def _single_resource_html_response(resource):
      
      tablename = resource.__tablename__
      resource.pk = getattr(resource, resource.primary_key())
      resource.attributes = resource.as_dict()
      return make_response(render_template(
          'resource.html',
          resource=resource,
          tablename=tablename))
docs: Return the HTML representation of *resource*.
  
      :param resource: :class:`sandman.model.Model` to render
      :type resource: :class:`sandman.model.Model`
      :rtype: :class:`flask.Response`