Copyright © 2009 Marc Worrell Date: 2009-04-09
Behaviours: gen_model.
Authors: Marc Worrell (marc@worrell.nl).
all/1 | Return the complete site configuration. |
get/2 | Fetch a key from the site configuration. |
get/3 | Fetch a nested key from the site configuration. |
get_all/2 | Fetch all values for a key, eg for the hostalias key. |
m_find_value/3 | Fetch the value for the key from a model source. |
m_to_list/2 | Transform a m_config value to a list, used for template loops. |
m_value/2 | Transform a model value so that it can be formatted or piped through filters. |
all(Context) -> any()
Return the complete site configuration
get(Key, Context) -> any()
Fetch a key from the site configuration
get(Module, Key, Context) -> any()
Fetch a nested key from the site configuration
get_all(Key, Context) -> any()
Fetch all values for a key, eg for the hostalias key.
m_find_value(Key, M::Source, Context) -> term()
Fetch the value for the key from a model source
m_to_list(M::Source, Context) -> All
Transform a m_config value to a list, used for template loops
m_value(M::Source, Context) -> term()
Transform a model value so that it can be formatted or piped through filters
Generated by EDoc, Feb 25 2011, 21:14:42.