Integrating with ME v1.14.x

Introduction

Check out the EJS Introduction.

Looking for ME documentation?

Locating EJS in ME

The EJS environment is located in the www-root/ejs directory. This directory contains the EJS library in the ElentraJS namespace, and the three core application namespaces: Layout, Module, and Plugin.

Configuring EJS in ME

The EJS environment configuration file is located at www-root/ejs/environment.js. All new modules must be added to this file to make them available in the system.

Booting EJS in ME

Booting is handled automatically on any page within Elentra that includes an entry point.

EJS Modules in ME

A module in EJS is a self-contained package of functionality, containing all relevant code and assets. Modules can be found in the www-root/ejs/Module directory.

EJS Layouts in ME

A layout is a component that wraps module content in EJS. Layouts can be found in the www-root/ejs/Layout directory.

EJS Entry Points in ME

EJS uses entry points to determine the execution path through the application. An entry point determines which module is initially loaded, an initial route, and an optional layout.

Using the Component Library

The EJS Component Library provides a great deal of built-in functionality that you can use when building your EJS modules. These components are found in the ElentraJS/Components namespace and can be included with a use() statement.

Note: The EJS Component Library is not compatible with the Bootstrap CSS library.

Last updated