stuff-from-scratch/test/compiler/TestTemplatingEngine.cpp
2022-12-01 10:52:48 +00:00

16 lines
401 B
C++

#include "TemplatingEngine.h"
#include "File.h"
#include "TestFramework.h"
#include "TestUtils.h"
TEST_CASE(TestTemplatingEngine, "compiler")
{
auto engine = TemplatingEngine(TestUtils::getTestDataDir());
engine.loadTemplateFiles();
const auto content = engine.processTemplate("index");
File outfile(TestUtils::getTestOutputDir() / "index.html");
outfile.writeText(content);
}