Skip to main content

register_functions

Function register_functions 

Source
pub fn register_functions(
    environment: &mut Environment<'static>,
    registry: &Arc<ComponentRegistry>,
)
Expand description

Adds Livewire’s own template functions, which a component view and an ordinary page both use.

A .html page renders components with {{ livewire("counter", {"count": 1}) }} and puts the runtime on the page with {{ livewire_styles() }} and {{ livewire_scripts() }}.