code: func (c *ContextTemplateData) IsPathParam(param string) bool {
  	params := c.Params
  	pp := false
  	if params.Type.IsObject() {
  		for _, r := range c.Routes {
  			pp = false
  			for _, p := range r.Params() {
  				if p == param {
  					pp = true
  					break
  				}
  			}
  			if !pp {
  				break
  			}
  		}
  	}
  	return pp
  }
docs: // IsPathParam returns true if the given parameter name corresponds to a path parameter for all
  // the context action routes. Such parameter is required but does not need to be validated as
  // httptreemux takes care of that.