{# This is a Jinja template file. See http://jinja.pocoo.org/ for Jinja documentation. #} {% macro field(game, name) -%} {{ game[name] }} {%- endmacro %} Games from {{ args.pgn_file }} {% if args.css %} {% else %} {% endif %} {% for game in games %} {{ "" if game.index % args.columns == 1 }} {{ "" if game.index % args.columns == 0 or loop.last }} {% endfor %}
{{ field(game, 'index') }}{{ field(game, 'BlackResult') }} {{ field(game, 'Black') }} ({{ game.BlackElo or 'UNR' }})

{{ field(game, 'WhiteResult') }} {{ field(game, 'White') }} ({{ game.WhiteElo or 'UNR' }})
{{ field(game, 'Event') }} {{ field(game, 'Date') }}
{{ field(game, 'ECO') }} {{ field(game, 'Opening') }}