How do I output a collection in Antlers using a variable?

collections contains an array of collection names generated by the Collections fieldtype. These needs to be joined by pipes into a string for the from attribute. Pipe obviously being an operator means this doesn't work:

{{ collection from="{ collections|join:| }" paginate="true" as="posts" }}

How do I escape the pipe? Backslash doesn't work.

>>>>>>> Unanswered <<<<<<<
3 Replies