Define template directory and call get_template_directory only once
Merge pull request #4 from scrubmx/template-directory

Define template directory and call get_template_directory only once