code: def genOutputs(self, code, match):
          
  
          out = sorted((k, match.output(m)) for (k, m) in
                       self.collectTriggers(match.match, code).items())
          out = list(map(lambda a: a[1], out))
          return out
docs: Return a list out template outputs based on the triggers found in
          the code and the template they create.