Skip to content

Commit

Permalink
Update table.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin authored Sep 10, 2024
1 parent 98b65bd commit cfb14f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheatsheets/jekyll/templating/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Given CSV file:

Notes:

- Here using the `tablerow` builtin Liquid method to render a row. No need to add `tbody`, `tr`, or `td` elements for the rows. Note data is unpacked as a tuple of keys and values for each row, so we name this `pair` and slice it.
- Here using the `tablerow` builtin Liquid method to render a row. No need to add `tbody`, `tr`, or `td` elements for the rows, with the downside that you can't add styling or links or fields. Note the data is unpacked as a tuple of keys and values for each row, so we name this `pair` and slice it.
- By using a inner `for` loops for the header and data rows, this approach is more flexible - it will work for any CSV and render all columns without having to reference them specifically.

```liquid
Expand Down

0 comments on commit cfb14f2

Please sign in to comment.