How to pass multi-line commands to template

As doc https://docs.drone.io/template/yaml/

kind: template
load: plugin.yaml
data:
  name: name
  image: image
  commands: commands

the commands are multi line show as below

echo hello
echo world

Base template

kind: pipeline
type: docker
name: default
steps:
   - name: {{ .input.name }}
     image: {{ .input.image }}
     commands:
        - {{ .input.commands }}

Need help