View Source Glific.CSV.Template (Glific v5.1.6)

Wrapper to allow each organization to modify how the templates are assembled. We will store this either in the DB and/or in the Flow CSV.

For now, for experimental purposes we will store it in code :)

Link to this section Summary

Functions

Given a template type and a language, returns the template to stich together the items from the CSV

Link to this section Functions

Link to this function

get_template(type, language)

View Source
@spec get_template(atom(), String.t()) :: String.t()

Given a template type and a language, returns the template to stich together the items from the CSV