From: Alex Gaynor Date: Wed, 7 Dec 2016 14:16:51 +0000 (-0500) Subject: Added an example of using a global tag X-Git-Tag: upstream/0.2.1^2~44 X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/commitdiff_plain/e09a1ee23e4238b3fffdc159e7f1ec3bb68169ed Added an example of using a global tag From the yaml spec --- 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.