File: section_as_context.hpp

package info (click to toggle)
mstch 1.0.2-4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 940 kB
  • sloc: cpp: 1,429; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
const auto section_as_context_data = mstch::map{
  {"a_object", mstch::map{
    {"title", std::string{"this is an object"}},
    {"description", std::string{"one of its attributes is a list"}},
    {"a_list", mstch::array{
      mstch::map{{"label", std::string{"listitem1"}}},
      mstch::map{{"label", std::string{"listitem2"}}}
    }}
  }}
};