@use "Card.rs.html" as Card @{ let x = 5; let y = 10; println!("{}", x + y); fn inline_function() -> String { "inline function".to_string() } } @time("2023-1:30:00Z") @time("2023-11-20T10:30:00Z").pretty() @time("2023-11-20T10:30:00Z").pretty().format("%b %d, %Y") @time("2023-11-20T10:30:00Z").date() @time("2023-11-20T10:30:00Z").time() @inline_function() @(3+5) @("Hello, world! ") @if self.title == "Hello" {
myvar is true
} else {myvar is false
}hello
world
@if true {say something
}User @user.name
User @user.age
Welcome to the home page.