Components
Last updated
Last updated
EJS supports custom, reusable components by leveraging the VueJS library. A component is simply a self-contained triad of HTML, JavaScript, and CSS that can be represented by a custom HTML tag.
Check out the for more information on using components.
EJS provides on-the-fly code-splitting and compilation of VueJS components defined in a single file. This allows the component author to include the entire component definition in one file.
Single-file components are defined using simple HTML syntax in a file with a .vue
extension.
EJS does not currently support scoped or pre-processed CSS in component definitions.
allow components to access functionality provided by internal EJS libraries, such as and .
Similarly, allow components to access a shared instance of a given class, such as .