Ejemplo n.º 1
0
        public void Generate()
        {
            if (Directory.Exists(_settings.OutPutFolder))
            {
                Directory.Delete(_settings.OutPutFolder, true);
            }
            Directory.CreateDirectory(_settings.OutPutFolder);

            var template = File.ReadAllText(_templateFile);
            var blog     = _blogFactory.Create();

            blog.Sort();

            GenerateIndex(blog, template);
            GeneratePosts(blog, template);
            GeneratePages(blog, template);
        }