Skip to main content

Module engine

Module engine 

Source
Expand description

The .livewire template engine: MiniJinja over the component’s compiled source.

A component’s view is resources/views/livewire/{name}.livewire, or a namespace’s directory. The engine compiles the component directives into Jinja first, injects the morph markers and derived wire keys, then renders with the framework’s helpers and Livewire’s own functions, so a component template behaves like an ordinary .html view that can also render child components.

Structs§

LivewireEngine
Renders .livewire component views.

Functions§

register_functions
Adds Livewire’s own template functions, which a component view and an ordinary page both use.
render_inline
Renders a component view written in the component module, which has no finder.
render_inline_with
Renders an inline view with markup marked safe, so a slot’s elements are not escaped.