A number of tags have specific content.
Examples include:
- anchor tags: most common being its content and href
- forms: action, method, & csrf
There are no doubt many others. It would significantly reduce the end user's data-preparation code by providing some helpers for these sorts of things.
data = %{
foo: %{
link: foo_path(conn, :index) |> a,
form: foo_path(conn, :create) |> form(:post),
}
}
A number of tags have specific content.
Examples include:
There are no doubt many others. It would significantly reduce the end user's data-preparation code by providing some helpers for these sorts of things.