- csv filter: Now accepts an optionaldelimiterargument, defaulting to a comma.
- parse_csv filter: Now accepts adelimiteroption, defaulting to a comma and aheadersoption to interpret the first line as headers.
Example Usage
csv filter
Default usage
(no arguments):{% assign csv = rows | csv %}
With custom delimiter
:{% assign csv = rows | csv: ";" %}
parse_csv filter
Default usage
(no arguments):{% assign orders = csv_string | parse_csv %}
With headers only
:{% assign orders = csv_string | parse_csv: headers: true %}
With custom delimiter only
:{% assign orders = csv_string | parse_csv: delimiter: ";" %}
With headers and custom delimiter
:{% assign orders = csv_string | parse_csv: headers: true, delimiter: ";" %}