Compiling template