Fixes #51
Fixes #46
Merge pull request #57 from yuijim/exclude-template

Fixes #46