mirror of
https://github.com/yaml/libyaml
synced 2026-06-08 18:28:36 +00:00
Added an example of using a global tag
From the yaml spec
This commit is contained in:
committed by
Ian Cordasco
parent
989bfd7919
commit
e09a1ee23e
@@ -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.
|
||||
Reference in New Issue
Block a user