From 30ea23ae9fbe236c4ef77cd96d3b099c17a2e990 Mon Sep 17 00:00:00 2001 From: tipsy Date: Wed, 22 Apr 2015 21:59:40 +0200 Subject: [PATCH] tabs to spaces --- examples/MainTemplateExample.java | 46 +++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/examples/MainTemplateExample.java b/examples/MainTemplateExample.java index 3a24613..30771e3 100644 --- a/examples/MainTemplateExample.java +++ b/examples/MainTemplateExample.java @@ -24,41 +24,41 @@ public class MainTemplate { MainTemplate.render( - "Form test", //this is the "String title" parameter - //Everything below here goes into the "Tag... contentTags" parameter - // "..." means "varargs", which means you can add as many Tags as you like - h2().withText("Please log in"), - form().withMethod("post").with( - emailInput("Email"), //see below for these three fields - passwordInput("Password"), - submitButton("Log in") + "Form test", //this is the "String title" parameter + //Everything below here goes into the "Tag... contentTags" parameter + // "..." means "varargs", which means you can add as many Tags as you like + h2().withText("Please log in"), + form().withMethod("post").with( + emailInput("Email"), //see below for these three fields + passwordInput("Password"), + submitButton("Log in") ) // you can create methods like these to return fully configured // HTML input fields/buttons (or any other tag) public static Tag emailInput(String placeholder) { - return input() - .withType("email") - .withId("email") - .withName("email") - .withPlaceholder(placeholder) - .isRequired(); + return input() + .withType("email") + .withId("email") + .withName("email") + .withPlaceholder(placeholder) + .isRequired(); } public static Tag passwordInput(String placeholder) { - return input() - .withType("password") - .withId("password") - .withName("password") - .withPlaceholder(placeholder) - .isRequired(); + return input() + .withType("password") + .withId("password") + .withName("password") + .withPlaceholder(placeholder) + .isRequired(); } public static Tag submitButton(String text) { - return button() - .withType("submit") - .withText(text); + return button() + .withType("submit") + .withText(text); } // OUTPUT