Modifier: merge


Merge an array variable with another array variable.

fruit:
  - apples
  - bananas
  - bacon
meat:
  - pork
  - beef
  - chicken
{{ fruit }}
apples bannanas bacon
{{ meat }}
pork beef chicken
{{ fruit merge="meat" }}
  {{ value }}
{{ /fruit }}
apples bananas bacon pork beef chicken 

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on July 15, 2019