code: def write(self, valuedict, version):
          
          result = []
  
          if version in self.versions:
              for tag in self.versions[version].order:
                  entry = self.versions[version].entries[tag]
                  result.extend(entry.write(valuedict))
  
          return result
docs: Generates the lines for the converted input file from the valuedict.
  
          :arg valuedict: a dictionary of values where the keys are ids in the
            template and the values obey their template rules.
          :arg version: the target version of the output file.