Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 325 Bytes

04-concat.md

File metadata and controls

19 lines (13 loc) · 325 Bytes

Many ways to skin a concat.

{# Broke #}
{% set string = foo ~ ' ' ~ bar ~ '!' %}

{# Woke #}
{% set string = [foo, ' ', bar, '!']|join() %}

{# Bespoke #}
{% set string = "#{foo} #{bar}!" %}

{# You do you, I guess… #}
{% set string = "%s %s!"|format(foo, bar) %}