lofi v0.1.5 Lofi.Resolve

Resolve content, plugging in mention values

Summary

Functions

Resolve string from texts and mentions, substituting values for any @mentions found by calling get_mention_value with the mention key

Resolve string from texts and mentions, substituting values for any @mentions found by looking up value in map values for the mention key. If key is not present, then fallback_value is used

Resolve string from texts and mentions, substituting values for any @mentions found by looking up value in map values for the mention key. . If key is not present, a KeyError exception is raised

Functions

resolve_content(texts, mentions, get_mention_value)

Resolve string from texts and mentions, substituting values for any @mentions found by calling get_mention_value with the mention key.

resolve_content(texts, mentions, values, fallback_value)

Resolve string from texts and mentions, substituting values for any @mentions found by looking up value in map values for the mention key. If key is not present, then fallback_value is used.

resolve_content!(texts, mentions, values)

Resolve string from texts and mentions, substituting values for any @mentions found by looking up value in map values for the mention key. . If key is not present, a KeyError exception is raised.