Skip to content

Suggestion for dsl #3

Description

@jeroenvandijk

I've created this hack for hypertemplate: https://gist.github.com/1113898

It allows for having something like the following:

notifications {
  members(:collection => @notifications, :root => false) do |notification|
    id           notification.id
    title        notification.title
  end
}

This will return something like the following

{ "notifications":
  [
    {
      "id": 2,
      "title": "some title",
    }
  ]
}

Would je be willing to add something like this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions