socketsupply / tonic

A Low Profile Component Framework – Stable, minimal, easy to audit, zero-dependencies and build-tool-free.
http://tonicframework.dev
MIT License
867 stars 24 forks source link

Expose a static method to get the tag name of a component #94

Closed nichoth closed 2 years ago

nichoth commented 2 years ago

Add a static method, Tonic.getTagName, that will convert a camel-case class name to a kebab case tag name. This is used in tonic already, but was in a private method, _splitName. This is related to #91 .

nichoth commented 2 years ago

Where would you document this in the docs website?