New answers tagged

3

Scriban has a split function on strings: https://github.com/scriban/scriban/blob/master/doc/builtins.md#stringsplit string.split <text> <match> The split function takes on a substring as a parameter. The substring is used as a delimiter to divide a string into an array. You can output different parts of an array using array functions. Also ...


2

Maybe you can use the string split (by '|') function that will get you the array: [www.test.com, www.test1.com]. Then you can read first element of the array using array first function. Example: {{ for word in "Hi, how are you today?" | string.split ' ' ~}} {{ word }} {{ end ~}} output Hi, how are you today?


Top 50 recent answers are included