picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 615 forks source link

How to merge strings? #531

Closed garraflavatra closed 4 years ago

garraflavatra commented 4 years ago

Hi,

In PHP, you can merge two strings like this: When $username = John, "Hello " . $username . "!" produces Hello John!.

Can we do that also in Twig?

marcus-at-localhost commented 4 years ago

{{ 'http://' ~ app.request.host }}

https://stackoverflow.com/a/7704889/814031

garraflavatra commented 4 years ago

Thank you very much!