docs: def read_yaml(self, filename):
          '''
          Reads and parses a YAML file and returns the content.
          '''
          with open(filename, 'r') as f:
              d = re.sub(r'\{\{ *([^ ]+) *\}\}', r'\1', f.read())
              y = yaml.safe_load(d)
              return y if y else {}