Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quantizor/cq5-requirejs
☕️ JSP code to enable dynamic creation of requireJS calls based on the components dropped in a CQ5 page template.
https://github.com/quantizor/cq5-requirejs
Last synced: 3 days ago
JSON representation
☕️ JSP code to enable dynamic creation of requireJS calls based on the components dropped in a CQ5 page template.
- Host: GitHub
- URL: https://github.com/quantizor/cq5-requirejs
- Owner: quantizor
- Created: 2013-08-27T14:18:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T17:53:53.000Z (about 9 years ago)
- Last Synced: 2024-12-11T13:24:17.737Z (11 days ago)
- Language: Java
- Homepage:
- Size: 152 KB
- Stars: 5
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CQ5-RequireJS
=============JSP code to enable dynamic creation of requireJS calls based on the components dropped in a CQ5 page template.
1. Place this code in the head or headlibs.jsp file of your page template component.
2. Add a `String[]` (multi) property called "requireJS" to your components that have a requireJS configuration.
**For example (via .content.xml template file):**
```xml
```3. Tweak the script tag at the bottom to match the location of your require.min.js and configuration files.
4. Enjoy!