private IEnumerable<string> GetAllPages()
{
string pagesPath = Path.Combine(_basePath, _configuration.PagesPath);
if (Directory.Exists(pagesPath) == false)
throw new DirectoryNotFoundException(String.Format("Cannot find the pages folder. Make sure '{0}' exists under the current directory '{1}'", _configuration.PagesPath, Directory.GetCurrentDirectory()));
string[] pages = Directory.GetFiles(pagesPath);
return pages;
}