Allow a TemplatedSnippet to produce multiple snippets from same template

Previously a TemplatedSnippet could only write snippets with the
same name as its template. This meant that the same template could
not be used to produce multiple snippets with different names.

This commit separates the snippet name from the template name, thereby
allowing the snippet name to vary while the template name remains the
same. For backwards compatibility, the default behaviour is for the
template name and snippet name to remain the same. The new overloaded
constructor can be used when the names need to differ.

Closes gh-320
This commit is contained in:
Andy Wilkinson
2016-10-25 12:27:03 +01:00
parent a603b9481e
commit 4f19294220
27 changed files with 432 additions and 369 deletions