mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
Update generate code example
This commit is contained in:
parent
c5f5d80cbc
commit
ade72a0f9d
@ -158,8 +158,9 @@ impl < 'a > ::askama::Template for HelloTemplate< 'a > {
|
|||||||
fn render_into(&self, writer: &mut ::std::fmt::Write) -> ::askama::Result<()> {
|
fn render_into(&self, writer: &mut ::std::fmt::Write) -> ::askama::Result<()> {
|
||||||
write!(
|
write!(
|
||||||
writer,
|
writer,
|
||||||
"Hello, {a0}!",
|
"Hello, {expr0}!",
|
||||||
a0=&::askama::MarkupDisplay::from(&self.name),)?;
|
expr0 = &::askama::MarkupDisplay::from(&self.name),
|
||||||
|
)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
fn extension() -> Option<&'static str> {
|
fn extension() -> Option<&'static str> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user