code: def find_include_doc(self, d, name):
          
          from metatab import parse_app_url
  
          include_ref = name.strip('/')
  
          if include_ref.startswith('http'):
              path = include_ref
          else:
              if not d:
                  raise IncludeError("Can't include '{}' because don't know current path "
                                     .format(name))
  
              path = join(d, include_ref)
  
          return parse_app_url(path)
docs: Resolve a name or path for an include doc to a an absolute path or url
          :param name: