Registry / web-framework / leptos-macro

leptos-macro

JSON →
library0.8.16rscratesunverified

View macro for the Leptos web framework.

# Cargo.toml [dependencies] leptos_macro = "0.8.16"
INSTALL
IMPORT
SIG · LEPTOS-MACRO
L
leptos-macro
web-frameworkrustv0.8.16
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

view
use leptos_macro::view;

Uses the view! macro to create a simple HTML element.

use leptos_macro::view; fn main() { let _ = view! { <p>"Hello, world!"</p> }; }
Debug
Known issues
gotchaRequires the `leptos` crate and its runtime to be in scope.
fix
Add `leptos = "0.8"` to Cargo.toml and ensure a Leptos runtime is set up.
affects: >=0.8.0
Upgrade
Version history
0.8.16latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
leptos-macro — cargo add leptos-macro · libregistry