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

30 lines
509 B
C++
Raw Normal View History

2022-10-03 06:45:10 +00:00
#include "CommandLineArgs.h"
2022-10-03 07:46:41 +00:00
#include "WebsiteGenerator.h"
2022-10-03 06:45:10 +00:00
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
// Substitute template files
2022-10-04 07:20:39 +00:00
// Write output
generator.write();
2022-10-03 06:45:10 +00:00
return 0;
}