FileTemplate

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

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Loading a template file from disk:

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

Applying to a FileTemplate:

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

Saving a template to disk:

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

The type of template to use is by default determined by the extension:

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

Evaluate $TemplatePath to see where FileTemplate is searching for templates:

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