litmus: simplify template compilation.