Skip to main content

Questions on working with templates in Mathematica, File/String/Notebook/Expression Templates and the functions used for manipulations like TemplateApply.

Templating mechanism was largely extended in Version 10. Earlier, templates were only represented by StringForm.

This function still exist but overloaded TemplateApply mimics it:

TemplateApply["Hello, my name is ``. I'm feeling ``.", {"Bob",   "good"}]

is the same as:

StringForm["Hello, my name is ``. I'm feeling ``.", "Bob", "good"]

Till V 9.0 templates are only