aboutsummaryrefslogtreecommitdiff
path: root/lib/mstch/test/data/section_as_context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mstch/test/data/section_as_context.hpp')
-rw-r--r--lib/mstch/test/data/section_as_context.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/mstch/test/data/section_as_context.hpp b/lib/mstch/test/data/section_as_context.hpp
new file mode 100644
index 0000000..fc5333a
--- /dev/null
+++ b/lib/mstch/test/data/section_as_context.hpp
@@ -0,0 +1,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"}}}
+ }}
+ }}
+}; \ No newline at end of file