Entry Points
Last updated
Last updated
EJS uses the concept of entry points to facilitate selective execution paths throughout the application. This allows a user to jump into the application from an entry point specific to the task at hand, only loading the necessary and files to complete it.
An entry point is specified simply by adding some attributes to the root DOM node. A route name may be specified to determine the initial execution path via the data-route
attribute, with its parameters passed in using the data-route-params
attribute. Additionally, an optional data-layout
attribute may be used to specify a component to wrap the application.