allow to filter the templates by extension in the templatemap generator

I have added an option to filter to templates by extension in the templatemap generator. Accepted format is a regex alternation. Examples:
- *
- phtml
- phtml|html
- p*

Sometimes in the view directory there are some license or image files, and they shouldn't be included in the templatemap.
May want to be a bit more descriptive here.