Class App

java.lang.Object
org.flasby.thymeleaf.App

public class App extends Object
runs the demo app.
  • Constructor Summary

    Constructors
    Constructor
    Description
    App()
    creates a configured App complete with a default TemplateEngine.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    prints the result of handling index.html to the console.
    process(String page, org.thymeleaf.context.Context ctx)
    builds the page content returning it as a String ready to be sent to a browser.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • App

      public App()
      creates a configured App complete with a default TemplateEngine.
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      prints the result of handling index.html to the console.
      Parameters:
      args - the usual commandline arguments, which are ignored in this case.
      Throws:
      IOException
    • process

      public String process(String page, org.thymeleaf.context.Context ctx)
      builds the page content returning it as a String ready to be sent to a browser.
      Parameters:
      page - the page to be rendered.
      ctx - a Thymeleaf Context object used for the rendering process.
      Returns:
      String with the page content.