Usando o context para enviar dados para dentro dos templates

This commit is contained in:
Luiz Otávio
2023-04-21 11:11:57 -03:00
parent dc90353228
commit 34374a59c7
6 changed files with 27 additions and 7 deletions

View File

@@ -1,3 +1,3 @@
{% extends 'global/base.html' %}
{% block texto %} Exemplo {% endblock texto %}
{% block texto %} {{ text }} {% endblock texto %}

View File

@@ -1,3 +1,3 @@
{% extends 'global/base.html' %}
{% block texto %} Blog {% endblock texto %}
{% block texto %} {{ text }} {% endblock texto %}