allow to filter the templates by extension in the templatemap generator

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