range

Signature
range(start=?, end=, step_by=?)

Integers from start (default 0) to end (exclusive) by step_by; Go’s seq N is range(start=1, end=N+1).

Arguments#

ArgumentTypeRequired
startintno
endintyes
step_byintno

Details#

  • Kind: Function, implemented by a Tera built-in.
  • Available in: every kind of template: layouts, partials, shortcodes and render hooks.
  • Output: escaped like any value, unless marked safe.

    Type to search titles, headings and text.