initial templating