new: create templates from string.