]> andersk Git - libyaml.git/commitdiff
Added an example of using a global tag
authorAlex Gaynor <alex.gaynor@gmail.com>
Wed, 7 Dec 2016 14:16:51 +0000 (09:16 -0500)
committerIan Cordasco <graffatcolmingov@gmail.com>
Thu, 8 Dec 2016 00:46:17 +0000 (18:46 -0600)
From the yaml spec

examples/global-tag.yaml [new file with mode: 0644]

diff --git a/examples/global-tag.yaml b/examples/global-tag.yaml
new file mode 100644 (file)
index 0000000..1180757
--- /dev/null
@@ -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.
This page took 0.25876 seconds and 5 git commands to generate.