k8wiz
Helm
Hard
Templates

Which function trims trailing newlines from a string in templates?

Select your answer:

Show answer and explanation

Answer: chomp

Explanation

The chomp function removes trailing newlines from a string; it's useful when joining template fragments.