Skip to content

param :class should automatically translate to param :className alias: :class #58

Closed

Description

@catmando

currently, you can say DIV(class: 'some-class') and under the hood this gets translated to DIV(className: 'some-class)

For symmetry, it should work the other way around. This can probably be easily done by translating param :class to param :className, alias: :class

Activity

  1. catmando commented on Nov 16, 2018

    @catmando
    ContributorAuthor

    in fact trying to create a param of name :class causes all sorts of problems as in the legacy system it tries to create a params.class method which kills the whole system.

  2. added a commit that references this issue on Nov 16, 2018
    15d470a
  3. added 2 commits that reference this issue on Sep 2, 2026
    b8ab35a
    d60025c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions