Hello world
To implement a Live HTML component, you must implement two methods, start and render. When the page first loads, the start method is called 1 time with a HashMap of GET parameters that were in the URL. After you return an instance of your View, the render method will be called to compute the UI. After every event, the render method is called again, so it is important that no expensive computations take place inside the render method. All platform functions are disabled inside during render.
Basic Strings with unreset#
To return HTML for your view, simple return a string from your View's render method. The CSS styles of the page have been reset so there are no default brower styles. In order to get basic styles use the class unreset
Using Maud and Tailwind#
Returning strings is not advised. You should properly escape string variables that you interpolate into your template. A more "rusty" approach is to use maud macro's to build the HTML for you.
Assemble includes tailwind for adding styles to your view. With tailwind you don't need to write CSS and simply style your HTML with classes.