Lissome.Render (Lissome v0.3.1)

View Source

Summary

Functions

Renders a lustre app in client side.

Renders a lustre app in server side.

Functions

render_lustre(module_name, target_id, flags)

Renders a lustre app in client side.

This function just renders the root container and the script tags necessary to mount the app.

ssr_lustre(module_name, flags, opts \\ [])

Renders a lustre app in server side.

This function will call the init_fn function to get the initial model and then the view_fn function to get the initial view.