Package org.flasby.thymeleaf
Class App
java.lang.Object
org.flasby.thymeleaf.App
runs the demo app.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
App
public App()creates a configured App complete with a default TemplateEngine.
-
-
Method Details
-
main
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
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.
-