Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

StringTemplate

StringTemplate["string"]
yields a TemplateObject that represents a string template to be applied using functions like TemplateApply.

StringTemplate[File[]]
takes the source for the string template from a file.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Apply a string template using positional arguments:

In[1]:=
Click for copyable input
Out[1]=

Apply a string template using named arguments:

In[1]:=
Click for copyable input
Out[1]=

Use expressions inside a template:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)