Skip to content

Consider a [this ...] style binding vector for all forms (like render) #5

@Jannis

Description

@Jannis

There are two ways to go about forms likerender: Either implicitly bind this, props and query results or give the user a binding vector to bind these things more explicitly.

Personally, I like implicit bindings if they are consistent and relatively clear e.g. if a query like

(allUsers
  (allUsers {first 100}
    [:id :name]))

results in render having access to the query result via an implicit allUsers binding like this:

(render
  (html (mapv render-user allUsers)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions