View Source Fermo.Template behaviour (Fermo v0.17.1)

Handle Fermo templates

Link to this section Summary

Link to this section Callbacks

Link to this callback

build_context(module, t, map)

View Source
@callback build_context(module(), String.t(), map()) :: map()
Link to this callback

content_for(module, list)

View Source
@callback content_for(module(), [term()]) :: term()
@callback defaults_for(module()) :: map()
@callback module_for_template(String.t()) :: module()
@callback params_for(module(), map()) :: map()

Link to this section Functions

Link to this function

build_context(module, template, page)

View Source
Link to this function

content_for(module, args)

View Source
Link to this function

module_for_template(template)

View Source
Link to this function

params_for(module, page)

View Source
Link to this function

render_template(module, template, page, params \\ %{})

View Source