{"id":16592295,"url":"https://github.com/quantizor/cq5-requirejs","last_synced_at":"2025-04-15T00:41:26.528Z","repository":{"id":10289511,"uuid":"12408001","full_name":"quantizor/CQ5-RequireJS","owner":"quantizor","description":"☕️ JSP code to enable dynamic creation of requireJS calls based on the components dropped in a CQ5 page template.","archived":false,"fork":false,"pushed_at":"2015-11-05T17:53:53.000Z","size":156,"stargazers_count":5,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T12:38:56.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quantizor.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}},"created_at":"2013-08-27T14:18:10.000Z","updated_at":"2016-12-15T20:22:02.000Z","dependencies_parsed_at":"2022-09-23T01:22:44.660Z","dependency_job_id":null,"html_url":"https://github.com/quantizor/CQ5-RequireJS","commit_stats":null,"previous_names":["quantizor/cq5-requirejs","probablyup/cq5-requirejs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantizor%2FCQ5-RequireJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantizor%2FCQ5-RequireJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantizor%2FCQ5-RequireJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantizor%2FCQ5-RequireJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quantizor","download_url":"https://codeload.github.com/quantizor/CQ5-RequireJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986270,"owners_count":21194024,"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":[],"created_at":"2024-10-11T23:20:18.489Z","updated_at":"2025-04-15T00:41:26.506Z","avatar_url":"https://github.com/quantizor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"CQ5-RequireJS\n=============\n\nJSP code to enable dynamic creation of requireJS calls based on the components dropped in a CQ5 page template.\n\n1. Place this code in the head or headlibs.jsp file of your page template component.\n\n2. Add a `String[]` (multi) property called \"requireJS\" to your components that have a requireJS configuration.\n\n  **For example (via .content.xml template file):**\n  ```xml\n  \u003cjcr:root xmlns:sling=\"http://sling.apache.org/jcr/sling/1.0\"\n            xmlns:cq=\"http://www.day.com/jcr/cq/1.0\"    \n            xmlns:jcr=\"http://www.jcp.org/jcr/1.0\"\n            jcr:primaryType=\"cq:Component\"\n            jcr:title=\"Color Picker\"\n            sling:resourceSuperType=\"foundation/components/parbase\"\n            allowedParents=\"[*/parsys]\"\n            componentGroup=\"My Components\"\n            requireJS=\"[jquery,color_picker]\" /\u003e\n   ```\n\n3. Tweak the script tag at the bottom to match the location of your require.min.js and configuration files.\n\n4. Enjoy!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantizor%2Fcq5-requirejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantizor%2Fcq5-requirejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantizor%2Fcq5-requirejs/lists"}