Fix docs/templates.md private gist example.

Duplicate of #1477 because we develop on the master branch.
Update history to reflect merge of #1477