Skip to content

TemplateApply

TemplateApply(string, values)

renders a StringTemplate expression by replacing TemplateSlots with mapped values.

Examples

>> TemplateApply("The quick brown `a` jumps over the lazy `b`.",<|"a" -> "fox", "b" -> "dog"|>)
The quick brown fox jumps over the lazy dog.
>> TemplateApply(StringTemplate("The quick brown `a` jumps over the lazy `b`."),<|"a" -> "fox", "b" -> "dog"|>)
The quick brown fox jumps over the lazy dog.

StringTemplate, TemplateIf, TemplateSlot

Implementation status

  • ✅ - full supported

Github