Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
#Correct:
_transform:
	_value.double: |
		{
				print "1"
		}
	_tags:
		"name": |
			{
				print "mytag"
				}


#Wrong:
_transform:
	_value.double:
		_value: |
			{
				print "1"
			}
	_tags:
		"name":
			_value: |
				{
					print "mytag"
				}




Good practices

It is recommended to put the sections in this order if possible:

  • _tags
  • _temp (if available)
  • _transform (if available)
  • _value (last)

Reason being:

  • _tags first because it gives the reader a clue about what he/she is about to read.
  • _temp is used in the transform section and thus should precede it for a natural way of reading as the values here is used later on
  • _transform should come after _temp because of the previous bullet
  • _value comes last, because all of the logic above has been used to provide this part.

Within _tagsĀ "im.name" should be the first one.