add template to the buffer