twig concat string

Solutions on MaxInterview for twig concat string by the best coders in the world

showing results for - "twig concat string"
Leon
18 Sep 2017
1{{ 'http://' ~ app.request.host }}
2
3// To add a filter - like 'trans' - in the same tag use
4{{ ('http://' ~ app.request.host) | trans }}
5
6// You can also use string interpolation, this does require double quoted strings:
7{{ "http://#{app.request.host}" }}