2015-04-17 03:05:59 +08:00
|
|
|
class section_functions_in_partials: public mstch::object {
|
|
|
|
public:
|
|
|
|
section_functions_in_partials() {
|
2015-04-21 21:04:11 +08:00
|
|
|
register_methods(this, {{"bold", §ion_functions_in_partials::bold}});
|
2015-04-17 03:05:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
mstch::node bold() {
|
|
|
|
return std::string{""};
|
|
|
|
/*return [](const std::string& text, mstch::renderer render) {
|
|
|
|
return std::string{"<b>"} + render(text) + std::string{"</b>"};
|
|
|
|
};*/
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const auto section_functions_in_partials_data = std::make_shared<section_functions_in_partials>();
|