Crate ruukh_codegen

source ·
Expand description

The crate which removes most of the boilerplate from Ruukh apps.

This lib defines #[component], #[derive(Lifecycle)] and html! macros.

Macros

html! macro to parse vue-inspired syntax to generate Markup.

Attribute Macros

#[component] macro to derive Component trait as well as to do modifications to the struct. It does all the heavy lifting which the user would have to do, to make the component work.

Derive Macros

A convenient auto derive for Lifecycle trait. It could be simply written as impl Lifecycle for MyComponent {} instead, but why not save some chars. You may use it like: