compiled General template