temp
Don’t know about template engines, but what’s wrong with Scala? In other words, I’d consider encoding the variants of “calculating” a treat selection as a Scala ADT, make this the type of the displayed_treat field, and run its logic at the Scala level, after parsing from YAML.
1 Like