class Index < Page

Inherits from
Page: #body_tag, #stylesheet_tag, #body_content, #import_map, #call

Represents the main index page for a Lively application.

This class renders the initial HTML page that users see when they visit a Lively application. It uses an XRB template to generate the page structure and embeds the Live view component for dynamic content.

Definitions

def initialize(title: "Lively", body: nil)

Initialize a new index page.

Signature

parameter title String

The title of the page.

parameter body Object

The body content of the page.

Implementation

def initialize(title: "Lively", body: nil)
	super(
		title: title,
		body: body,
		icon: ICON,
		stylesheets: STYLESHEETS,
		imports: IMPORTS,
		modules: MODULES,
	)
end