template snippetting