private void CreateIndexFile() { ExecuteOnStepMessage(StepInput.ChmStrings.CreateIndex); var indexHtmlFile = Path.Combine(StepInput.TmpPath, StepInput.SDProject.ProjectName.Replace(" ", "") + "-Index.html"); var template = new IndexTemplate(); File.WriteAllText(indexHtmlFile, template.TransformText()); }
private void CreateIndexFile() { var indexHtmlFile = Path.Combine(_tmpFilepath, _repository.ProjectInfo.ProjectName.Replace(" ", "") + "-Index.html"); var template = new IndexTemplate { ProjectInfo = _repository.ProjectInfo, CurrentLanguage = _currentLanguage }; File.WriteAllText(indexHtmlFile, template.TransformText()); }