Mixture templating engine (complier p1)