mstch/src/mstch.cpp

16 lines
333 B
C++
Raw Normal View History

2015-04-10 02:41:27 +08:00
#include <iostream>
2015-04-12 21:35:13 +08:00
#include "mstch/mstch.hpp"
#include "render_context.hpp"
2015-04-12 22:19:55 +08:00
#include "utils.hpp"
2015-04-10 02:41:27 +08:00
using namespace mstch;
std::string mstch::render(
2015-04-11 22:29:12 +08:00
const std::string& tmplt,
2015-04-13 08:34:27 +08:00
const object& root,
2015-04-10 02:41:27 +08:00
const std::map<std::string,std::string>& partials)
{
2015-04-15 07:42:51 +08:00
return render_context(root, partials).render(tmplt);
2015-04-10 02:41:27 +08:00
}