class Page < Lively::Page

Inherits from
Lively::Page

The HTML page shell for a Presently view.

Configures Lively's generic page with Presently's assets and embedded Live view component.

Definitions

def initialize(title: "Presently", body: nil, stylesheets: [])

Initialize a new page.

Signature

parameter title String

The page title.

parameter body Live::View | Nil

The Live view to embed in the page.

parameter stylesheets Array(String | Hash)

Presentation-specific stylesheets.

Implementation

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