webtides / element-js

Simple and lightweight base classes for web components with a beautiful API
MIT License
28 stars 3 forks source link

Feature/directives #65

Closed eddyloewen closed 1 year ago

eddyloewen commented 2 years ago

This adds a first batch of built-in directives for the vanilla renderer. This is not compatible with the default lit-html renderer. But they do have their own directives to choose from as stated in the docs.

The vanilla renderer has not been documented at all so far. And I don't want to do it right now because it is being completely rewritten in #67. I would leave it for now and rewrite the docs for the TemplateElement and the renderer over there and then also add documentation for the directives.