Add option to configure template extensions

Closes #6