From 362386b1e6027e94dde208aa99aec550c64fedf5 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Sat, 7 Oct 2023 10:34:38 +0100 Subject: [PATCH] Indentation --- README.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 34cebac..1c2cd87 100644 --- a/README.md +++ b/README.md @@ -78,20 +78,21 @@ public class Example1 { """). bundle(Example1.class). include("cssImports", TemplateModel.ofContent("")). - variable("time", Example1::formatTime). - variable("answer", () -> 2 + 2). - variable("weather", "Sunny"). - i18n("i18n1", "key1"). - i18n("i18n2", "key2", Math.random()). - condition("am", () -> Calendar.getInstance().get(Calendar.HOUR_OF_DAY) > 11). - list("menu", content -> - Arrays.asList("Mon", "Tue", "Wed", "Thu", "Fri").stream().map(day -> - TemplateModel.ofContent(content). - variable("day", day). - variable("link", () -> "/warp-to>day=" + day). - condition("friday", () -> day.equals("Fri")) - ).toList() - ))); + variable("time", Example1::formatTime). + variable("answer", () -> 2 + 2). + variable("weather", "Sunny"). + i18n("i18n1", "key1"). + i18n("i18n2", "key2", Math.random()). + condition("am", () -> Calendar.getInstance().get(Calendar.HOUR_OF_DAY) > 11). + list("menu", content -> + Arrays.asList("Mon", "Tue", "Wed", "Thu", "Fri").stream().map(day -> + TemplateModel.ofContent(content). + variable("day", day). + variable("link", () -> "/warp-to>day=" + day). + condition("friday", () -> day.equals("Fri")) + ).toList() + )) + ); } private static String formatTime() {