docs: def event_handler(self, event_type, src_path):
          """Re-render templates if they are modified.
  
          :param event_type: a string, representing the type of event
  
          :param src_path: the path to the file that triggered the event.
  
          """
          filename = os.path.relpath(src_path, self.searchpath)
          if self.should_handle(event_type, src_path):
              print("%s %s" % (event_type, filename))
              if self.site.is_static(filename):
                  files = self.site.get_dependencies(filename)
                  self.site.copy_static(files)
              else:
                  templates = self.site.get_dependencies(filename)
                  self.site.render_templates(templates)