Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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!