Liquid v0.9.1 Liquid.TableRow View Source

tablerow tag iterates over an array or collection splitting it up to a table with pre-set columns number

Several useful variables are available to you within the loop.

Link to this section Summary

Functions

Parses and organises markup to set up iterator

Iterates through pre-set data and appends it to rendered output list Adds the HTML table rows and cols depending on the initial cols parameter

Link to this section Functions

Link to this function

parse(block, t) View Source
parse(Liquid.Block, Liquid.Template) :: {Liquid.Block, Liquid.Template}

Parses and organises markup to set up iterator

Link to this function

render(output, block, context) View Source
render(
  list(),
  %Liquid.Block{
    blank: term(),
    condition: term(),
    elselist: term(),
    iterator: term(),
    markup: term(),
    name: term(),
    nodelist: term(),
    parts: term(),
    strict: term()
  },
  %Liquid.Context{
    assigns: term(),
    blocks: term(),
    break: term(),
    continue: term(),
    extended: term(),
    extra_tags: term(),
    global_filter: term(),
    offsets: term(),
    presets: term(),
    registers: term(),
    template: term()
  }
) ::
  {list(),
   %Liquid.Context{
     assigns: term(),
     blocks: term(),
     break: term(),
     continue: term(),
     extended: term(),
     extra_tags: term(),
     global_filter: term(),
     offsets: term(),
     presets: term(),
     registers: term(),
     template: term()
   }}

Iterates through pre-set data and appends it to rendered output list Adds the HTML table rows and cols depending on the initial cols parameter