1#!/usr/bin/env python3 2 3from jinja2 import Environment, FileSystemLoader 4import argparse 5 6parser = argparse.ArgumentParser() 7parser.add_argument("--template") 8parser.add_argument("--base-artifacts-url") 9args = parser.parse_args() 10 11env = Environment(loader = FileSystemLoader('.'), trim_blocks=True, lstrip_blocks=True) 12template = env.get_template(args.template) 13 14values = {} 15values['base_artifacts_url'] = args.base_artifacts_url 16 17print(template.render(values))