ForageWeb.Display protocol (forage v0.5.0)
A protocol to display Ecto structs as either HTML or text. By default Ecto schemas generated by Mandarin implement this protocol.
Link to this section Summary
Link to this section Types
Specs
t() :: term()
Link to this section Functions
Link to this function
as_html(model)
Displays the model as HTML.
This is meant to be used to diplay options in a select widget and when you want to show the user a resource as HTML.
Link to this function
as_text(model)
Displays the model as plaintext.
This is meant to be used to diplay options in a select widget and when you want to show the user a resource as HTML.