Theme check and Liquid fixes
- With
youcan theme check, the theme in the current directory is checked, and every error and warning is listed with its file and line. The exit code is1when the theme has errors. See Theme Check. - In
tablerow, you can loop over a range such as(1..4).col,col0,col_first,col_lastandroware available ontablerowloop. A<td>is printed for each item, also when the loop is stopped withbreak. Seetablerow. - Any array, such as
product.variants, can be paginated. Inside thepaginatetag, only the current page of the array is available. Seepaginate. - Variables that you assign outside a theme block cannot be read inside it. See Rendering theme blocks.
- Variables that you assign inside a section rendered with
sectionorsectionsare not visible outside the section.