| 361 | }; |
| 362 | |
| 363 | inline data_ptr make_template(const std::string &templateText, const string_vector *param_names = nullptr) |
| 364 | { |
| 365 | DataTemplate *t = new DataTemplate(templateText); |
| 366 | if (param_names) |
| 367 | { |
| 368 | t->params() = *param_names; |
| 369 | } |
| 370 | return data_ptr(t); |
| 371 | } |
| 372 | |
| 373 | // The big daddy. Pass in the template and data, |
| 374 | // and get out a completed doc. |
no test coverage detected