/*
 * Copyright (C) Lightbend Inc. <https://www.lightbend.com>
 */

package javaguide.hello;

import controllers.AssetsFinder;
import play.mvc.*;

import javax.inject.Inject;

public class HelloController extends Controller {

  @Inject
  public HelloController() {}

  // #hello-world-index-action
  public Result index() {
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
    // ###replace:        return ok(views.html.index.render("Your new application is
    // ready."));
    return ok(javaguide.hello.html.index.render("Your new application is ready."));
=======
    // ###replace: return ok(views.html.index.render("Your new application is ready.", assetsFinder));
=======
// ###replace: return ok(views.html.index.render("Your new application is ready.", assetsFinder));
>>>>>>> 6a56b9b225 (moved comment left)
    return ok(javaguide.hello.html.index.render("Your new application is ready.", assetsFinder));
>>>>>>> e3c37f9ed1 (Fixed `###replace:` tag that led to incorrect docs)
=======
    // ###replace: return ok(views.html.index.render("Your app is ready.", assetsFinder));
    return ok(javaguide.hello.html.index.render("Your app is ready.", assetsFinder));
>>>>>>> 0f38f39e66 (tried changing the wording so it was shorter)
  }
  // #hello-world-index-action

  // #hello-world-hello-action
  public Result hello() {
    // ###replace:     return ok(views.html.hello.render());
    return ok(javaguide.hello.html.hello.render());
  }
  // #hello-world-hello-action

  /*
  //#hello-world-hello-error-action
  public Result hello(String name) {
      return ok(views.html.hello.render());
  }
  //#hello-world-hello-error-action
   */

  // #hello-world-hello-correct-action
  public Result hello(String name) {
    // ###replace:    return ok(views.html.hello.render(name));
    return ok(javaguide.hello.html.helloName.render(name));
  }
  // #hello-world-hello-correct-action
}

@@ -322,47 +322,8 @@
 ) %7B%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A%3C%3C%3C%3C%3C%3C%3C HEAD%0A%3C%3C%3C%3C%3C%3C%3C HEAD%0A
     
@@ -336,23 +336,16 @@
 replace:
-       
  return 
@@ -381,33 +381,14 @@
 our 
-new application is%0A    //
+app is
  rea
@@ -453,716 +453,25 @@
 our 
-new application is ready.%22));%0A=======%0A    // ###replace: return ok(views.html.index.render(%22Your new application is ready.%22, assetsFinder));%0A=======%0A// ###replace: return ok(views.html.index.render(%22Your new application is ready.%22, assetsFinder));%0A%3E%3E%3E%3E%3E%3E%3E 6a56b9b225 (moved comment left)%0A    return ok(javaguide.hello.html.index.render(%22Your new application is ready.%22, assetsFinder));%0A%3E%3E%3E%3E%3E%3E%3E e3c37f9ed1 (Fixed %60###replace:%60 tag that led to incorrect docs)%0A=======%0A    // ###replace: return ok(views.html.index.render(%22Your app is ready.%22, assetsFinder));%0A    return ok(javaguide.hello.html.index.render(%22Your app is ready.%22, assetsFinder));%0A%3E%3E%3E%3E%3E%3E%3E 0f38f39e66 (tried changing the wording so it was shorter)
+app is ready.%22));
 %0A  %7D

Fix conflicts