Generate a Notebook from a Template 

Here is a sample template notebook.

Create a template from the notebook.

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

Apply the template.

In[2]:=
Click for copyable input
X