Add templating to jobs (fixes #1)