Welcome | Get started | Dive into Lino | Contribute | Reference | More


This defines the Counter class, a utility used in Jinja templates to generate self-incrementing counters for sections, subsections and any other sequences.

Usages and examples can be found in Lino utilities.


Counter([parent, start, step])

Represents a counter.

class lino.utils.jinja.Counter(parent=None, start=0, step=1)

Bases: object

Represents a counter. Usage see