propensive / honeycomb

A lightweight and typesafe DSL for embedding HTML in Scala code
https://propensive.com/honeycomb/
Apache License 2.0
6 stars 0 forks source link

Provide convenience subtypes of some HTML tags #15

Open propensive opened 1 month ago

propensive commented 1 month ago

Tags like Input should have their type, such as "radio" specified, and we would normally have to write,

Input(`type` = Type.Radio, name = t"whatever")

but this would be easier to write as,

Input.Radio(name = t"whatever")

This could also apply to some other types, notably Meta and Link, but possibly others.

propensive commented 1 month ago

Others include scope on Th, rev on Link/A, kind on Track, shape on Area, and still possibly more.