@use "Card.rs.html" as Card @* merhaba comment *@ @{ 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! ") @raw { @if (x > 5) { print("hey"); }
Count value: {{ count }}
{{-- Buttons and event listeners --}} } @if self.title == "Hello" {myvar is true
} else {myvar is false
}hello
world
@if true {say something
}hello world
@if self.card_count > 0 {Count is greater than 0
} else {Count is not greater than 0
} }, 2 =>hel,_..loo
, _ =>aa=>,{..a
, } @for user in &self.users {User @user.name
User @user.age
Welcome to the home page.