canonrs-server 0.1.0

CanonRS server-side rendering support
1
2
3
4
5
6
7
8
9
10
11
use leptos::prelude::*;
use super::code_block_ui::*;

pub fn basic_example() -> impl IntoView {
    view! {
        <CodeBlock 
            code="fn main() {\n    println!(\"Hello, world!\");\n}".to_string()
            language="rust".to_string()
        />
    }
}