Skip to main content

Crate resuma_macros

Crate resuma_macros 

Source
Expand description

Resuma procedural macros.

These macros are the surface area Resuma exposes to user code:

  • view! — JSX-like template syntax that builds a View tree.
  • [#[component]] — turns a function into a Resuma component.
  • [#[server]] — exposes an async fn as a server action / RPC.
  • [#[island]] — marks an interactive island (its handlers ship to JS).
  • js! — escape hatch for raw JavaScript handler bodies.

Macros§

computed
computed! / use_computed! — client-replayable derived signal (rs2js-translated).
debounce
debounce! — debounced client reaction to a signal.
effect
effect!([signals…], move || { … }) — client-replayable side effect (rs2js).
js
js! — raw JavaScript escape hatch for event handlers.
view
view! — JSX-like template macro.

Attribute Macros§

component
#[component] — registers a function as a Resuma component.
island
#[island] — marks a component as an interactive island.
layout
#[layout] — Resuma Flow layout wrapper.
load
#[load] — Resuma Flow server data loader.
middleware
#[middleware] — Resuma Flow request middleware.
server
#[server] — exposes an async fn as a server action.
submit
#[submit] — Resuma Flow form submission handler.