stuff-from-scratch/apps/website-generator/main.cpp

29 lines
576 B
C++

#include "CommandLineArgs.h"
#include "WebsiteGenerator.h"
int main(int argc, char *argv[])
{
auto args = CommandLineArgs::Create();
args->process(argc, argv);
args->recordLaunchPath();
WebsiteGenerator generator;
generator.findProject(args->getArg(1));
generator.readConfig();
// Find and process project files
generator.parseContentFiles();
// Find template files
generator.parseTemplateFiles();
// Substitute template files
generator.doSubstitutions();
// Write output
generator.write();
return 0;
}