mstch/src/mstch.cpp
2015-04-12 16:19:55 +02:00

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));
}