Skip to content

Single-Flavor Mode

Running Whiskers with the --flavor/-f flag causes it to run in single-flavor mode.

This means the chosen flavor is placed into the template context as flavor and, for convenience, all of its colors are also placed into the context as their respective identifiers (red, surface0, et cetera.)

For example, the following template is valid when running whiskers example.tera -f latte:

example.tera
---
whiskers:
version: "^X.Y.Z"
---
I can use {{red.hex}} directly, instead of needing {{flavor.colors.red.hex}}.