{"id":23503149,"url":"https://github.com/kpfleming/jinjanator-plugin-format-xml","last_synced_at":"2026-01-22T13:47:46.500Z","repository":{"id":185877093,"uuid":"674257852","full_name":"kpfleming/jinjanator-plugin-format-xml","owner":"kpfleming","description":"Plugin for Jinjanator to allow XML-format data to be parsed and used in templates.","archived":false,"fork":false,"pushed_at":"2025-12-15T21:46:48.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T05:56:32.514Z","etag":null,"topics":["jinja2","jinja2-cli","python","python3","xml"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kpfleming.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"kpfleming","liberapay":"kpfleming"}},"created_at":"2023-08-03T13:57:42.000Z","updated_at":"2025-12-15T21:46:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee55cbfa-5e87-4118-a0cb-77cc3565f859","html_url":"https://github.com/kpfleming/jinjanator-plugin-format-xml","commit_stats":null,"previous_names":["kpfleming/jinjanator-plugin-format-xml"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kpfleming/jinjanator-plugin-format-xml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpfleming","download_url":"https://codeload.github.com/kpfleming/jinjanator-plugin-format-xml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-xml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jinja2","jinja2-cli","python","python3","xml"],"created_at":"2024-12-25T08:15:34.638Z","updated_at":"2026-01-22T13:47:46.494Z","avatar_url":"https://github.com/kpfleming.png","language":"Shell","funding_links":["https://github.com/sponsors/kpfleming","https://liberapay.com/kpfleming"],"categories":[],"sub_categories":[],"readme":"# jinjanator-plugin-format-xml\n\n\u003ca href=\"https://opensource.org\"\u003e\u003cimg height=\"150\" align=\"left\" src=\"https://opensource.org/files/OSIApprovedCropped.png\" alt=\"Open Source Initiative Approved License logo\"\u003e\u003c/a\u003e\n[![CI](https://github.com/kpfleming/jinjanator-plugin-format-xml/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/kpfleming/jinjanator-plugin-format-xml/actions/workflows/ci.yml)\n[![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/release/python-31019/)\n[![License - Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-9400d3.svg)](https://spdx.org/licenses/Apache-2.0.html)\n[![Code Style - Black](https://img.shields.io/badge/Code%20Style-Black-000000.svg)](https://github.com/psf/black)\n[![Types - Mypy](https://img.shields.io/badge/Types-Mypy-blue.svg)](https://github.com/python/mypy)\n[![Code Quality - Ruff](https://img.shields.io/badge/Code%20Quality-Ruff-red.svg)](https://github.com/astral-sh/ruff)\n[![Project Management - Hatch](https://img.shields.io/badge/Project%20Management-Hatch-purple.svg)](https://github.com/pypa/hatch)\n[![Testing - Pytest](https://img.shields.io/badge/Testing-Pytest-orange.svg)](https://github.com/pytest-dev/pytest)\n\nThis repo contains `jinjanator-plugin-format-xml`, a plugin which\nprovides an XML parser for the [jinjanator](https://github.com/kpfleming/jinjanator) tool.\n\nOpen Source software: [Apache License 2.0](https://spdx.org/licenses/Apache-2.0.html)\n\n## \u0026nbsp;\n\u003c!-- fancy-readme start --\u003e\n\nThis plugin allows jinjanator to parse XML data for processing in\ntemplates. The format can be selected using `--format xml` or\nautoselected by using a data file with a name ending with `.xml`.\n\n## Installation\n\n```\npip install jinjanator-plugin-format-xml\n```\n\n## Usage\n\nSuppose you have an NGINX configuration file template, `nginx.j2`:\n\n```jinja2\nserver {\n  listen 80;\n  server_name {{ nginx.hostname }};\n\n  root {{ nginx.webroot }};\n  index index.htm;\n}\n```\n\nAnd you have an XML file with the data, `nginx.xml`:\n\n```xml\n\u003cnginx\u003e\n  \u003chostname\u003e\n    localhost\n  \u003c/hostname\u003e\n  \u003cwebroot\u003e\n    /var/www/project\n  \u003c/webroot\u003e\n\u003c/nginx\u003e\n```\n\nThis is how you render it into a working configuration file:\n\n```bash\n$ jinjanate nginx.j2 nginx.xml \u003e nginx.conf\n```\n\n## Options\n\n* `process-namespaces`: configures the XML parser to replace namespace\n  references in element names with the corresponding namespaces from\n  `xmlns` attributes in the top-level element in the document.\n\u003c!-- fancy-readme end --\u003e\n\n## Chat\n\nIf you'd like to chat with the jinjanator community, join us on\n[Matrix](https://matrix.to/#/#jinjanator:km6g.us)!\n\n## Credits\n\n[\"Standing on the shoulders of\ngiants\"](https://en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants)\ncould not be more true than it is in the Python community; this\nproject relies on many wonderful tools and libraries produced by the\nglobal open source software community, in addition to Python\nitself. I've listed many of them below, but if I've overlooked any\nplease do not be offended :-)\n\n* [Black](https://github.com/psf/black)\n* [Hatch-Fancy-PyPI-Readme](https://github.com/hynek/hatch-fancy-pypi-readme)\n* [Hatch](https://github.com/pypa/hatch)\n* [Mypy](https://github.com/python/mypy)\n* [Pytest](https://github.com/pytest-dev/pytest)\n* [Ruff](https://github.com/astral-sh/ruff)\n* [Towncrier](https://github.com/twisted/towncrier)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpfleming%2Fjinjanator-plugin-format-xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpfleming%2Fjinjanator-plugin-format-xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpfleming%2Fjinjanator-plugin-format-xml/lists"}