use jinja to parse files as template