shelly-macros 0.6.0

Placeholder macros for future Shelly typed templates.
Documentation

shelly-macros

Macros for Shelly LiveView.

Current surface:

  • html! for mixed static/dynamic template construction with escaped dynamic segments
  • #[live_view] placeholder attribute for future metadata expansion

Install

cargo add shelly-macros

Example

use shelly_macros::html;

let user_name = "Ada";
let template = html! {
    "<p>Hello " (user_name) "</p>"
};

API Docs

https://docs.rs/shelly-macros