Skip to content

Template: Support & document dashes as valid characters in variable and property names #55

Description

@michaelpb

Allow '-' character in symbol names in template syntax. This is especially useful for props. Then, document + test one of the following paths:

  1. Translate to camel when doing JS (keep JS free of properties with - -- probably best, since it's how loadFromDOM works)
  2. Keep the same, and make sure - is used consistently (e.g. in script tags, props['my-best'] instead of props.myBest)

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

    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