hash
The hash
keyword literal may be used in any Liquid code to instantiate a hash.
Hashes support assignment by key. The keys and values filters may be used to quickly access an array of hash keys or values, respectively.
The term "hash" comes from Ruby. In Ruby (docs), "A Hash is a dictionary-like collection of unique keys and their values."
In Mechanic's Liquid implementation, a hash can only have string keys.
Example
Last updated