Skip to content

chip_set hand-writes data-lavash-member because the injector rejects prop refs #129

Closed

Description

@pinetops

lib/lavash/chip_set.ex:68 hand-writes its member directive only because as_class_string/1 (data_attr_transformer.ex) accepts string literals but not prop references like @active_class in the class branches. Teaching the member injector to resolve compile-time-known prop defaults (or accept attr refs when they're statically resolvable) removes the last hand-written directive inside lavash's own components.

Note: data-lavash-member itself is deliberately kept (not consolidated into attr derives) — it reads per-row values from phx-value-val inside :for loops, where derives structurally can't go.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions