code: func (c *Context) Write(sub SubContext, f SubFormat) error {
  	c.buffer = bytes.NewBufferString("")
  	c.preFormat()
  
  	tmpl, err := c.parseFormat()
  	if err != nil {
  		return err
  	}
  
  	subFormat := func(subContext SubContext) error {
  		return c.contextFormat(tmpl, subContext)
  	}
  	if err := f(subFormat); err != nil {
  		return err
  	}
  
  	c.postFormat(tmpl, sub)
  	return nil
  }
docs: // Write the template to the buffer using this Context