Customizing how liquid objects are rendered

Hi all,

If foo is a variable whose value is an array or hash, is it possible to customize how it’s rendered when outputted with {{ foo }}, as by checking its type or for the presence of specific keys, perhaps via a custom hook or monkey-patching one of Jekyll’s methods? We’re hoping to provide users with a relative simple syntax for rendering collections of data, without the syntax of a custom tag or filter.

Thank you!