update `nagHelper.resolveTemplatePath()` method to support inline templates