rshtml_core 0.2.0

RsHtml: A Template Engine for Seamless HTML and Rust Integration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
<div>
    <p>this is escaped: @self.for_escape </p>
    <p>this is not escaped: @#self.for_escape </p>
    <p>value: @self.value</p>
    <p>value: @&self.value</p>
    <p>value: @&&self.value</p>
    <p>data: @self.data.as_deref().unwrap_or_else(|| "Hii").to_string()</p>
    <p>data: @self.data.as_deref().unwrap_or_else(|| &"Hii").to_string()</p>
    <p>my func: this is @self.my_func().to_uppercase()</p>
    <p>my func: this is@self.my_func()also it is</p>
</div>