({{, (RefLink[CombinerFunction, paclet:ref/CombinerFunction]) 
is an option for template functions that specifies how fragments should be assembled to give the result of applying a template.}})

OpenersNotesSection(Spacer1)Details

With (RefLink[CombinerFunction, paclet:ref/CombinerFunction])->(RefLink[Automatic, paclet:ref/Automatic]), the following settings are used:

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Return the uncombined list of template elements:

t = StringTemplate["The next planet is `planet`: mass is `mass`.", CombinerFunction -> Identity];
TemplateApply[t,<|"planet"->"Jupiter", "mass"->"big"|>]

The (RefLink[CombinerFunction, paclet:ref/CombinerFunction]) can be an export format:

TemplateApply[
StringTemplate["The next planet is `planet`: mass is `mass`,  and \" will be escaped in json.", 
InsertionFunction->Identity,
CombinerFunction -> "JSON"],
<|"planet"->"Jupiter", "mass"-> "big"|>
]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[InsertionFunction, paclet:ref/InsertionFunction])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[XML Templates, paclet:guide/XMLTemplates])}})}})