Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Comp('data-foo-bar' => 12, 'data-baz-woggle' => "strng") can be shortened #93

@catmando

Description

@catmando
Contributor

the following works with data and aria tags:

Comp('data-foo-bar' => 12, 'data-baz-woggle' => "strng")
can be written as
Comp(data: {foo_bar: 12, baz_woggle: "strng")

In otherwords data attributes can be provided as a hash, and snake case will be dasherized automatically.

Also works with aria attributes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @catmando

        Issue actions

          Comp('data-foo-bar' => 12, 'data-baz-woggle' => "strng") can be shortened · Issue #93 · ruby-hyperloop/ruby-hyperloop.io