#include /* Yep, tests for nytl depend on assets for website. Yep, I see no problem with that */ int main(int argc, char** argv) { if (argc < 2) { fprintf(stderr, "Usage: test assets_dir"); exit(1); } std::string dir_path = argv[1]; nytl::Templater templater(nytl::TemplaterSettings{nytl::TemplaterDetourRules{dir_path}}); templater.update(); std::string answer = templater.render("list-rooms", {}); printf("%s\n<>\n", answer.c_str()); std::string answer2 = templater.render("test", {}); printf("%s\n<>\n", answer.c_str()); return 0; }