add options to support set basePath and omit extension in template function name
Merge pull request #1 from jarvisaoieong/patch

add options to support set basePath and omit extension in template function name