added TemplateList::fromBuffer