Twig is a template engine for PHP. In essence, it supports a subset of the server-side PHP language in which Zenario is written, and runs the code in a controlled environment.
It's easy to understand, and has a mixture of HTML and simple server-side executable code.
Zenario uses the Twig template engine for outputting HTML:
A good place for learning Twig is https://twig.symfony.com/doc/3.x/.
All regular Twig language constructs can be used, plus the Zenario-specific functions described below.