/libraries/ directory of wityCMS.
Add a library
- Create a folder with the name of the library (such as /libraries/testlib/)
- Declare it in the libraries.json file, within the path key without the .js extension:
Use a library in a template
requireJS to manage JS libraries.
To load a library, it must be declared in the view.php of an application: