add template generating with bindata