updated document
string#template takes a block
update document