stuff-from-scratch/apps/website-generator/main.cpp
2023-01-13 14:29:12 +00:00

29 lines
579 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->getArgs()[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;
}