This repository contains the AJAX framework of October CMS. If you want to build a website using October CMS, visit the main October CMS repository.
Your application can use the octobercms
npm package to install the AJAX Framework as a module for build tools like webpack.
- Add the
octobercms
package to your application.
npm install --save octobercms
- Require and start the Framework in your JavaScript bundle.
var oc = require('octobercms');
// Make an AJAX request
oc.ajax('onDoSomething');
// Enable data attributes API
oc.AjaxFramework.start();
// Enable extra features
oc.AjaxExtras.start();
// Enable turbo routing
oc.AjaxTurbo.start();
The October CMS platform is licensed software, see End User License Agreement (EULA) for more details.