view tests/data/index-access-for-jails.yml @ 704:457ef358c1a0

filter-only expansions also implemented in the C extension. BUGS: No caching yet (pure Python and C extension).
author Franz Glasner <f.glasner@feldmann-mg.com>
date Mon, 14 Aug 2023 13:00:19 +0200
parents b97e5f3bbc8e
children
line wrap: on
line source

# -*- coding: utf-8; mode: yaml; indent-tabs-mode: nil; -*-

# Testing index access in jails: list items are containers

%YAML 1.1
---

the-list:
  - entry: 0
  - entry: 1
  - entry: 2

expand-me: '{{the-list.~1~.entry}}'
expand-me-2: '{{the-list.~-1~.entry}}'