(defcomp
  ()
  (~examples/page-content
    :title "PUT / PATCH"
    :description "sx-put replaces the entire resource. This example shows a profile card with an Edit All button that sends a PUT with all fields."
    :demo-description "Click Edit All to replace the full profile via PUT."
    :demo (~examples/put-patch-demo
      :name "Ada Lovelace"
      :email "ada@example.com"
      :role "Engineer")
    :sx-code ";; Replace entire resource\n(form :sx-put \"/sx/(geography.(hypermedia.(example.(api.putpatch))))\"\n  :sx-target \"#pp-target\" :sx-swap \"innerHTML\"\n  (input :name \"name\") (input :name \"email\")\n  (button \"Save All (PUT)\"))"
    :handler-names (list "ex-pp-edit-all" "ex-pp-put")
    :comp-placeholder-id "pp-comp"
    :wire-placeholder-id "pp-wire"))
