mstch/test/data/partial_template.hpp

18 lines
403 B
C++
Raw Normal View History

2015-04-16 19:05:59 +00:00
class partial_template: public mstch::object {
public:
partial_template() {
2015-04-21 13:04:11 +00:00
register_methods(this, {
{"title", &partial_template::title},
{"again", &partial_template::again}});
2015-04-16 19:05:59 +00:00
}
mstch::node title() {
return std::string{"Welcome"};
}
mstch::node again() {
return std::string{"Goodbye"};
}
};
const auto partial_template_data = std::make_shared<partial_template>();