locomotivecms / steam

The rendering stack used by both Wagon and Station (new name of the engine). It includes the rack stack and the liquid drops/filters/tags.
MIT License
38 stars 59 forks source link

Custom concat filter conflicts with Liquid's version #201

Open dcoleman-lulzbot opened 3 years ago

dcoleman-lulzbot commented 3 years ago

Locomotive provides a custom filter called concat. At the time it was implemented, this was a unique name.

Since then, Liquid has added its own filter called concat, which provides a way to join arrays. However, this new function cannot be accessed due to the conflict with the Locomotive version.

Being able to use Liquid's concat would be very useful, as it provides a way to combine multiple arrays into a single array, as opposed to the Locomotive version which appends the arguments as strings. From what I can tell, The functionality of Locomotive's concat can be achieved with join and append.

Would you consider removing the custom concat or providing a workaround so the vanilla concat can be accessed?