TemplateBuilder

The builder is bundled in the NPM package @tmorin/ceb-elements-builders.

The builder handles the integration of a templating solution to update the content of the Custom Element.

The builder doesn't provide the templating solution out of the box. However, the library provides a built-in solution described later, c.f. Templating .

Challenge yourself

Will you be able to ...

  1. display Hello, John Doe! calling the render method?
  2. render into a Shadow DOM?
  3. render into a Grey DOM?

See the Pen <ceb/> ~ challenge/TemplateBuilder by Thibault Morin (@tmorin) on CodePen.