code: def _get_jobs_from_template(self, template, job_class):
          
          jobs = []
          for command in template.eval():
              alias = command.alias
              depends_on = [job.alias
                  for job in self.queue.all_jobs
                      for deps in command.depends_on
                          if deps == job.alias]
              command.update_dependent_files([job.command
                  for job in self.queue.all_jobs
                      if not isinstance(job, JobTemplate)])
  
              job = job_class(alias, command, depends_on)
              jobs.append(job)
          return jobs
docs: Given a template, a job class, construct jobs from
          the given template.