minimalistic template processor