templates_inheritance/content.h Header File
#ifndef CONTENT_H
#define CONTENT_H
#include <cppcms/view.h>
#include <string>
namespace content {
struct master : public cppcms::base_content {
std::string title;
};
struct page : public master {
std::string page_title, page_content;
};
struct news : public master {
std::list<std::string> news_list;
};
}
#endif
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4