add getPath method to template

Update via Ryan