mstch/test/data/comments.hpp

12 lines
267 B
C++
Raw Normal View History

2015-04-17 03:05:59 +08:00
class comments: public mstch::object {
public:
comments() {
2015-04-21 21:04:11 +08:00
register_methods(this, {{"title", &comments::title}});
2015-04-17 03:05:59 +08:00
}
mstch::node title() {
return std::string{"A Comedy of Errors"};
}
};
const mstch::node comments_data = std::make_shared<comments>();