diff --git a/README.md b/README.md index a1e3c77..3c76006 100644 --- a/README.md +++ b/README.md @@ -250,11 +250,10 @@ public View users(Model model) { model.addAttribute("users", userRepository.findAll()); model.addAttribute("count", userRepository.count()); - var view = new HtmxView(); - view.add("users :: list"); - view.add("users :: count"); - - return view; + return FragmentsRendering + .with("users :: list") + .fragment("users :: count") + .build(); } ```