diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-12-07 09:16:51 -0500 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-12-07 18:46:17 -0600 |
commit | e09a1ee23e4238b3fffdc159e7f1ec3bb68169ed (patch) | |
tree | a428dc85443fac29de760b8170580c1eb4daeb03 /examples | |
parent | 989bfd791966c36b067389b88c9543d91d756f2b (diff) | |
download | libyaml-git-e09a1ee23e4238b3fffdc159e7f1ec3bb68169ed.tar.gz |
Added an example of using a global tag
From the yaml spec
Diffstat (limited to 'examples')
-rw-r--r-- | examples/global-tag.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/global-tag.yaml b/examples/global-tag.yaml new file mode 100644 index 0000000..1180757 --- /dev/null +++ b/examples/global-tag.yaml @@ -0,0 +1,14 @@ +%TAG ! tag:clarkevans.com,2002: +--- !shape + # Use the ! handle for presenting + # tag:clarkevans.com,2002:circle +- !circle + center: &ORIGIN {x: 73, y: 129} + radius: 7 +- !line + start: *ORIGIN + finish: { x: 89, y: 102 } +- !label + start: *ORIGIN + color: 0xFFEEBB + text: Pretty vector drawing. |