templateItems

fun templateItems(template: String, vararg values: Any?): EventItems

Extract a map of items from a template and supplied values for the holes.

For example, given the call templateItems("User {userId} signed in", userId) it returns mapOf("userId" to userId).

Return

a map of the values, keyed by the text in each of the holes.

Parameters

template

a template. See Message templates for more information.

values

values to fill the ‘holes’ in a template. There should be one value for each hole.