Module m_notifier

Model for using the zotonic notifier.

Copyright 2012 Maas-Maarten Zeeman Date: 2012-03-18

Behaviours: gen_model.

Authors: Maas-Maarten Zeeman (mmzeeman@xs4all.nl).

Description

Model for using the zotonic notifier. Use map and first inside your templates.

Function Index

m_find_value/3Fetch the value for the key from a model source.
m_to_list/2Transform a m_config value to a list, used for template loops.
m_value/2Transform a model value so that it can be formatted or piped through filters.

Function Details

m_find_value/3

m_find_value(Message::Key, M::Source, Context) -> term()

Fetch the value for the key from a model source

m_to_list/2

m_to_list(M::Source, Context) -> List

Transform a m_config value to a list, used for template loops

m_value/2

m_value(M::Source, Context) -> term()

Transform a model value so that it can be formatted or piped through filters


Generated by EDoc, Sep 2 2014, 23:03:29.