{"id":19070225,"url":"https://github.com/bree7e/oc-html-compress-minify-plugin","last_synced_at":"2026-06-12T21:31:30.862Z","repository":{"id":99734667,"uuid":"120096099","full_name":"bree7e/oc-html-compress-minify-plugin","owner":"bree7e","description":"HTML compress/minify plugin for October CMS","archived":false,"fork":false,"pushed_at":"2018-02-03T14:04:33.000Z","size":456,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T03:43:13.568Z","etag":null,"topics":["octobercms-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bree7e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-02-03T14:00:52.000Z","updated_at":"2024-09-25T17:10:10.000Z","dependencies_parsed_at":"2023-07-31T21:02:35.825Z","dependency_job_id":null,"html_url":"https://github.com/bree7e/oc-html-compress-minify-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bree7e/oc-html-compress-minify-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bree7e%2Foc-html-compress-minify-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bree7e%2Foc-html-compress-minify-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bree7e%2Foc-html-compress-minify-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bree7e%2Foc-html-compress-minify-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bree7e","download_url":"https://codeload.github.com/bree7e/oc-html-compress-minify-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bree7e%2Foc-html-compress-minify-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34263869,"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-06-12T02:00:06.859Z","response_time":109,"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":["octobercms-plugin"],"created_at":"2024-11-09T01:17:38.412Z","updated_at":"2026-06-12T21:31:30.819Z","avatar_url":"https://github.com/bree7e.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML compress/minify plugin for October CMS\n\n## Description\n\nA [Twig](http://twig.sensiolabs.org/) extension for [voku/HtmlMin](https://github.com/voku/HtmlMin).\n\nPlugin uses [HTML compresstwig package](https://packagist.org/packages/voku/html-compress-twig)\n\n## Usage\n\n* Tag\n```twig\n{% htmlcompress %} \u003cfoo\u003ebar\u003c/foo\u003e {% endhtmlcompress %}\n```\n* Function\n```twig\n{{ htmlcompress(' \u003cfoo\u003ebar\u003c/foo\u003e') }}\n```\n* Filter\n```twig\n{{ ' \u003cfoo\u003ebar\u003c/foo\u003e' | htmlcompress }}\n```\n\n## Demo theme example\nDefault layout `default.htm`\n```twig\n{% htmlcompress %} \n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003eOctober CMS - {{ this.page.title }}\u003c/title\u003e\n        \u003cmeta name=\"description\" content=\"{{ this.page.meta_description }}\"\u003e\n        \u003cmeta name=\"title\" content=\"{{ this.page.meta_title }}\"\u003e\n        \u003cmeta name=\"author\" content=\"OctoberCMS\"\u003e\n        \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n        \u003cmeta name=\"generator\" content=\"OctoberCMS\"\u003e\n        \u003clink rel=\"icon\" type=\"image/png\" href=\"{{ 'assets/images/october.png'|theme }}\"\u003e\n        \u003clink href=\"{{ 'assets/css/vendor.css'|theme }}\" rel=\"stylesheet\"\u003e\n        \u003clink href=\"{{ 'assets/css/theme.css'|theme }}\" rel=\"stylesheet\"\u003e\n        {% styles %}\n    \u003c/head\u003e\n    \u003cbody\u003e\n\n        \u003c!-- Header --\u003e\n        \u003cheader id=\"layout-header\"\u003e\n            {% partial 'site/header' %}\n        \u003c/header\u003e\n\n        \u003c!-- Content --\u003e\n        \u003csection id=\"layout-content\"\u003e\n            {% page %}\n        \u003c/section\u003e\n\n        \u003c!-- Footer --\u003e\n        \u003cfooter id=\"layout-footer\"\u003e\n            {% partial 'site/footer' %}\n        \u003c/footer\u003e\n\n        \u003c!-- Scripts --\u003e\n        \u003cscript src=\"{{ 'assets/vendor/jquery.js'|theme }}\"\u003e\u003c/script\u003e\n        \u003cscript src=\"{{ 'assets/vendor/bootstrap.js'|theme }}\"\u003e\u003c/script\u003e\n        \u003cscript src=\"{{ 'assets/javascript/app.js'|theme }}\"\u003e\u003c/script\u003e\n        {% framework extras %}\n        {% scripts %}\n\n    \u003c/body\u003e\n\u003c/html\u003e\n{% endhtmlcompress %}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbree7e%2Foc-html-compress-minify-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbree7e%2Foc-html-compress-minify-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbree7e%2Foc-html-compress-minify-plugin/lists"}