From 73d041ea1ff549e611d13c2674cbf384f20d4a29 Mon Sep 17 00:00:00 2001 From: xhaggi Date: Mon, 25 Nov 2024 11:20:18 +0100 Subject: [PATCH] Adapt Thymeleaf example in README.md to FragmentsRendering --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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(); } ```