Skip to main content

scene

Attribute Macro scene 

Source
#[scene]
Expand description

Turns async fn intro(view: View) { .. } into fn intro() -> SceneDef.

The scene’s name is the function name; its meta lives in <name>.meta.json next to the source file.