Added templating into build index