EEJS, for ExpressionEngine
Currently early in development, the aim of this library is to open up information within
the ExpressionEngine installation so that it can be easily consumed by JS libraries.
//EE PHP Configurations & Constants eejs.config('webmaster_email'); // firstname.lastname@example.org eejs.action('Member', 'register_member'); // 10 //URLs eejs.url('foo/bar') // http://example.com/foo/bar/ eejs.templateUrl('foo/bar') // http://example.com/index.php/foo/bar/ eejs.actionUrl('Member', 'member_login') // http://example.com/?ACT=15
The library is packaged as an ExpressionEngine extension.
- Copy the
system/expressionengine/third_party/eejsfolder to the same
location in your EE installation
- Install the extension by logging into your EE control panel and going to
Add-ons → Extensions and then installing the Eejs extension.
Sorry, but this is still to be done.
If you have time on your hands, or are insanely interested, you can have a look through the
system/expressionengine/third_party/eejs/tests/spec/EejsSpec.js to see
how the module currently works!
If you’re feeling super helpful you could even fork, write some documentation and submit
a pull request!