Lissome.Component (Lissome v0.2.0)
View SourceSummary
Functions
Renders a lustre app.
Functions
Renders a lustre app.
Attributes
name
(:string
) (required) - The name of the Gleam module to render relative to the src directory.Examples include"my_lustre_app"
, and"pages/home"
.flags
(:map
) - Initial values to pass to the Gleam module. Defaults to%{}
.init_fn
(:string
) - the name of your Gleam function that initializes the model. Defaults to"init"
.view_fn
(:string
) - the name of your Gleam function that renders the view. Defaults to"view"
.id
(:string
) - The id Lustre targets to render into. Defaults to"app"
.class
(:string
) - The class name to apply to the rendered app. Defaults to""
.ssr
(:boolean
) - Whether to render the app on the server side. Defaults totrue
.