docs: def view_attr(attr_name):
      """
      Creates a getter that will drop the current value
      and retrieve the view's attribute with specified name.
      @param attr_name: the name of an attribute belonging to the view.
      @type attr_name: str
      """
  
      def view_attr(_value, context, **_params):
          value = getattr(context["view"], attr_name)
          return _attr(value)
  
      return view_attr