You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tanveer Alam edited this page Dec 7, 2019
·
2 revisions
TAGS
Tags:
Used for:
Setting a custom URI
Setting local tags
Setting a data type
Set a URI:
Use the %TAG ! prefix
%TAG ! tag:hostsdata:phl:
---
Tags provide us with three functions: The ability to assign a universal resource indicator, the ability to assign local tags to that indicator, and the ability to change how the YAML parser reads certain scalars when processing the YAML itself. We first take a look at how to assign a URI using the %TAG header, then we assign some local tags with !, before finally learning how to use the !! indicator to change the data type of a scalar.