Skip to content

New dsl, step 3/3: migrate tag-specific prop types from Html to Dom_html #136

Open
@jchavarri

Description

@jchavarri

After original api implementation in #119 and update of ppx to support it in #128, the last step of this new api consists on migrating the "specs" implemented with types in ppx Html module to the Prop module in Dom_html. The goal being to make impossible to pass wrong attributes to e.g. a div.

I am not sure about the best way to implement this, probably could use an approach similar to bs-css, with polyvariants + subtyping to reflect inheritance or composition based on smaller subsets of props, like here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions