From 469f3942eb6567c2fdad7308350ee23dade030e9 Mon Sep 17 00:00:00 2001 From: Juhasz Sandor Date: Thu, 3 Jun 2021 13:44:21 +0200 Subject: [PATCH] Use an 'include' in tera templating example. --- examples/templating/templates/tera/base.html.tera | 2 +- examples/templating/templates/tera/nav.html.tera | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 examples/templating/templates/tera/nav.html.tera diff --git a/examples/templating/templates/tera/base.html.tera b/examples/templating/templates/tera/base.html.tera index df807cf0..ac06dbbf 100644 --- a/examples/templating/templates/tera/base.html.tera +++ b/examples/templating/templates/tera/base.html.tera @@ -5,7 +5,7 @@ Tera Demo - {{ title }} - Hello | About + {% include "tera/nav" %} {% block content %}{% endblock content %} diff --git a/examples/templating/templates/tera/nav.html.tera b/examples/templating/templates/tera/nav.html.tera new file mode 100644 index 00000000..edcc88e4 --- /dev/null +++ b/examples/templating/templates/tera/nav.html.tera @@ -0,0 +1 @@ +Hello | About