Converted handler to support directory structure
code to lookup template dirs in handler directory