messages: switch to new template package
rewrote and put in its own repo. Now supports {if a ==/!= b}, string
literals ({if a == "b"}), else/else if and nested if statements.
This commit is contained in:
@@ -372,9 +372,11 @@ var customContent = map[string]CustomContentInfo{
|
||||
},
|
||||
Variables: []string{
|
||||
"myAccountURL",
|
||||
"profile",
|
||||
},
|
||||
Placeholders: map[string]any{
|
||||
"myAccountURL": "https://example.url/my/account",
|
||||
"profile": "Default User Profile",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user