2016-07-05 11:01:22 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
namespace template_engine
|
|
|
|
{
|
|
|
|
|
|
|
|
using std::string;
|
|
|
|
using data = std::unordered_map<string, string>;
|
|
|
|
|
2016-11-02 23:05:02 +08:00
|
|
|
string render(const string& form, const data& partials);
|
2016-07-05 11:01:22 +08:00
|
|
|
|
|
|
|
}
|