17 lines
378 B
C++
17 lines
378 B
C++
#include <iostream>
|
|
|
|
#include "mstch/mstch.hpp"
|
|
#include "render_context.hpp"
|
|
#include "utils.hpp"
|
|
|
|
using namespace mstch;
|
|
|
|
std::string mstch::render(
|
|
const std::string& tmplt,
|
|
const object& root_object,
|
|
const std::map<std::string,std::string>& partials)
|
|
{
|
|
return render_context(root_object, partials)
|
|
.render(strip_whitespace(tmplt));
|
|
}
|