mstch/test/data/section_functions_in_partials.hpp
2015-04-17 02:07:14 +02:00

15 lines
No EOL
487 B
C++

class section_functions_in_partials: public mstch::object {
public:
section_functions_in_partials() {
register_method("bold", this, &section_functions_in_partials::bold);
}
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>();