mirror of
https://github.com/pantor/inja.git
synced 2026-06-11 05:19:45 +00:00
restructure third-parties, add licenses, add more gcc-compiler tests
This commit is contained in:
+18
-2
@@ -1,10 +1,19 @@
|
||||
/*
|
||||
Inja - A Template Engine for Modern C++
|
||||
*/
|
||||
|
||||
#ifndef PANTOR_INJA_HPP
|
||||
#define PANTOR_INJA_HPP
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <regex>
|
||||
|
||||
#include "json/json.hpp"
|
||||
|
||||
#ifndef NLOHMANN_JSON_HPP
|
||||
static_assert(false, "nlohmann/json not found.");
|
||||
#endif
|
||||
|
||||
namespace inja {
|
||||
|
||||
@@ -428,4 +437,11 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace inja
|
||||
string render(string input, json data) {
|
||||
Environment env = Environment();
|
||||
return env.render(input, data);
|
||||
}
|
||||
|
||||
} // namespace inja
|
||||
|
||||
#endif // PANTOR_INJA_HPP
|
||||
-14396
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user