Netflix / x-element

A dead simple starting point for custom elements.
Apache License 2.0
28 stars 12 forks source link

Decouple templating engine and ship with a minimal default. #115

Closed theengineear closed 1 year ago

theengineear commented 2 years ago

Decoupling rendering logic from core x-element logic and rolling our own internal templating engine would provide the following benefits:

  1. Zero Dependencies — This makes installation, integration, and consumption of this library incredibly straightforward and tightly controlled.
  2. Simple by Default — A major goal of this project is to keep the interface size to a minimum. It's not meant to do it all. By rolling a custom templating engine, we can (1) expose only functionality that we think is necessary and (2) allow integrators to pick their own templating engine if ours doesn't meet their needs (e.g., lit-html or µhtml).

How might the interface change?

This list is incomplete and subject to change — but, to give an idea: