half-complete refactor
This commit is contained in:
parent
25bbbfdbcc
commit
8fbcd12284
100 changed files with 483 additions and 327 deletions
15
test/data/section_functions_in_partials.hpp
Normal file
15
test/data/section_functions_in_partials.hpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
class section_functions_in_partials: public mstch::object {
|
||||
public:
|
||||
section_functions_in_partials() {
|
||||
register_methods(this, {{"bold"}, §ion_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>();
|
Loading…
Add table
Add a link
Reference in a new issue