Render Jinja2 templates with YAML or JSON variables