sakstig

SakStig is an objectpath implementation that uses proper querysets and supports querying any python object that supports the dict or list interfaces

View on GitHub

Template semantics

A template consist of JSON entities which are evaluated recursively on some input queryset available as $ to SakStig expressions. Initially, the template context @template() is set to the same as $. The output is a queryset.

The template is an object

If the template contains a member named $

input entry transform:

If the template does not contain a member named $

The template is an array

Other values

All other values are returned verbatim as a single member of a queryset.