Add template compile task to build chain