{"id":21662502,"url":"https://github.com/galan/packtag","last_synced_at":"2025-10-07T00:43:19.318Z","repository":{"id":57730462,"uuid":"12355932","full_name":"galan/packtag","owner":"galan","description":"A JSP Taglib for delivering minified, combined and gzip-compressed resources (JavaScript and CSS).","archived":false,"fork":false,"pushed_at":"2025-01-07T15:03:30.000Z","size":27980,"stargazers_count":25,"open_issues_count":4,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-13T02:08:56.581Z","etag":null,"topics":["compression","css","java","javascript","jsp-taglib","minification","minify","taglib"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/galan.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":"2013-08-25T07:58:49.000Z","updated_at":"2025-01-08T07:41:47.000Z","dependencies_parsed_at":"2025-02-24T16:09:06.784Z","dependency_job_id":"4aed5a75-6e73-40ec-ab6b-1f9f07fcd266","html_url":"https://github.com/galan/packtag","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galan%2Fpacktag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galan%2Fpacktag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galan%2Fpacktag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galan%2Fpacktag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/galan","download_url":"https://codeload.github.com/galan/packtag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654092,"owners_count":21140236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["compression","css","java","javascript","jsp-taglib","minification","minify","taglib"],"created_at":"2024-11-25T10:16:31.260Z","updated_at":"2025-10-07T00:43:14.286Z","avatar_url":"https://github.com/galan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://img.shields.io/travis/galan/packtag.svg?style=flat)](https://travis-ci.org/galan/packtag)\r\n[![Maven Central](https://img.shields.io/maven-central/v/de.galan.packtag/packtag-core.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/de.galan.packtag/packtag-core)\r\n[![License](https://img.shields.io/github/license/galan/packtag.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)\r\n\r\n# pack:tag\r\n\r\nA JSP Taglib for delivering minified, combined and gzip-compressed resources (JavaScript and CSS).\r\n\r\n# Usage\r\n\r\nTo use the taglib in a JSP, you have to declare it first:\r\n\r\n    \u003c%@ taglib uri=\"https://github.com/d8bitr/packtag\" prefix=\"pack\" %\u003e\r\n\r\n(You can still use the old uri 'http://packtag.sf.net' for backward compatibility)\r\n\r\nNow you can easily pack JavaScript by using the following tag:\r\n\r\n    \u003cpack:script src=\"/js/myJavaScriptFile.js\"/\u003e\r\n\r\nAccordingly for Cascading Style Sheets:\r\n\r\n    \u003cpack:style src=\"/css/myCascadingStyleSheet.css\"/\u003e\r\n\r\nYou can enable and disable each tag individually by setting the attribute enabled to false, e.g.:\r\n\r\n    \u003cpack:script src=\"/js/myJavaScriptFile.js\" enabled=\"false\"/\u003e\r\n\r\nYou can combine resources simply by listing them up:\r\n\r\n    \u003cpack:script\u003e\r\n      \u003csrc\u003e/js/myJavaScriptFile.js\u003c/src\u003e\r\n      \u003csrc\u003e/js/mySecondJavaScriptFile.js\u003c/src\u003e\r\n    \u003c/pack:script\u003e\r\n\r\nThat's it.\r\n\r\nIf you want to deepen your knowledge and learn about advanced techniques, I suggest reading \"[pack:tag - a packed guide to website performance optimization](https://github.com/galan/packtag/raw/master/documentation/packtag%20-%20a%20packed%20guide%20to%20website%20performance%20optimization.pdf)\".\r\n\r\n\r\n# Integration\r\n\r\n1. Add the maven dependency to your project:\r\n\r\n        \u003cdependency\u003e\r\n            \u003cgroupId\u003ede.galan.packtag\u003c/groupId\u003e\r\n            \u003cartifactId\u003epacktag-core\u003c/artifactId\u003e\r\n            \u003cversion\u003e4.0.0\u003c/version\u003e\r\n        \u003c/dependency\u003e\r\n\r\n2. Copy the `\u003cservlet\u003e` and `\u003cservlet-mapping\u003e` from the [web.xml](https://github.com/galan/packtag/blob/master/packtag-testsite/src/main/webapp/WEB-INF/web.xml) into your\r\n/WEB-INF/web.xml\r\n\r\n\r\n# Note\r\npack:tag is still supported, and still encouraged to be used if it makes sense for your project. But, no further development beyond bug fixes is expected. pack:tag is over 8 years old, and has been stable since then. Thank you to the community for your support of this project over the last years.\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalan%2Fpacktag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalan%2Fpacktag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalan%2Fpacktag/lists"}