{"id":15357265,"url":"https://github.com/gera2ld/jinja2-htmlcompress","last_synced_at":"2026-07-16T06:01:42.914Z","repository":{"id":77381428,"uuid":"64220252","full_name":"gera2ld/jinja2-htmlcompress","owner":"gera2ld","description":"Compresses HTML in Jinja2 streams","archived":false,"fork":false,"pushed_at":"2016-07-26T13:10:02.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-12T00:32:07.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gera2ld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2016-07-26T12:40:10.000Z","updated_at":"2016-07-26T13:05:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8b51aee-ff02-477c-b153-2ddfe37d3dd9","html_url":"https://github.com/gera2ld/jinja2-htmlcompress","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.4285714285714286,"last_synced_commit":"cc86fbb1dab042053c4fd1e357d08195de02650e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gera2ld/jinja2-htmlcompress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fjinja2-htmlcompress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fjinja2-htmlcompress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fjinja2-htmlcompress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fjinja2-htmlcompress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gera2ld","download_url":"https://codeload.github.com/gera2ld/jinja2-htmlcompress/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fjinja2-htmlcompress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35532646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"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":[],"created_at":"2024-10-01T12:34:19.634Z","updated_at":"2026-07-16T06:01:42.877Z","avatar_url":"https://github.com/gera2ld.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"jinja2-htmlcompress\n===\n\nA Jinja2 extension that removes whitespace between HTML tags.\n\nBased on [mitsuhiko's jinja2-htmlcompress](https://github.com/mitsuhiko/jinja2-htmlcompress).\n\nInstallation\n---\n``` sh\n$ pip3 install git+https://github.com/gera2ld/jinja2-htmlcompress.git\n```\n\nUsage\n---\n* Compress all HTML\n\n  ``` python\n  env = Environment(extensions=['jinja2htmlcompress.HTMLCompress'])\n  ```\n\n* Compress partial HTML\n\n  ``` python\n  env = Environment(extensions=['jinja2htmlcompress.SelectiveHTMLCompress'])\n  ```\n\n  And then mark blocks with `{% strip %}`:\n\n  ``` html\n  {% strip %} ... {% endstrip %}\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fjinja2-htmlcompress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgera2ld%2Fjinja2-htmlcompress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fjinja2-htmlcompress/lists"}