Tenplates
This commit is contained in:
parent
76b10815e3
commit
b47171f7b2
|
@ -42,7 +42,7 @@ async fn index(State(state): State<AppState>) -> Result<Html<String>> {
|
||||||
Ok(Html(
|
Ok(Html(
|
||||||
state
|
state
|
||||||
.templates
|
.templates
|
||||||
.render("pages/index.html.jinja", context!())
|
.render("pages/index.jinja.html", context!())
|
||||||
.await?,
|
.await?,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ async fn about(State(state): State<AppState>) -> Result<Html<String>> {
|
||||||
Ok(Html(
|
Ok(Html(
|
||||||
state
|
state
|
||||||
.templates
|
.templates
|
||||||
.render("pages/about.html.jinja", context!())
|
.render("pages/about.jinja.html", context!())
|
||||||
.await?,
|
.await?,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends "page.html.jinja" %}
|
{% extends "page.jinja.html" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>Index</h1>
|
<h1>Index</h1>
|
||||||
<p class="important">
|
<p class="important">
|
||||||
|
|
Loading…
Reference in a new issue