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

Handle Fermo templates

Link to this section Summary

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

Link to this section Callbacks

Link to this callback

build_context(module, arg2, map)

View Source

Specs

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

content_for(module, list)

View Source

Specs

content_for(module(), [term()]) :: term()

Specs

defaults_for(module()) :: map()
Link to this callback

module_for_template(arg1)

View Source

Specs

module_for_template(String.t()) :: module()

Specs

params_for(module(), map()) :: map()