Switched to PathParts for templatePath.
Temporary templateParts refactor.