16 lines
401 B
C++
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);
|
|
}
|