From cf24e968ca4c87456f3ea28e5a20ef7a8c7faef6 Mon Sep 17 00:00:00 2001 From: "Lucas F." Date: Wed, 14 Jan 2026 14:10:44 -0300 Subject: [PATCH] update: sample templates --- templates/base.html | 26 ++++++++++++++++++++++++++ templates/home.html | 28 ++++++++++++++++++++++++++++ templates/partials/header.html | 12 ++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/home.html create mode 100644 templates/partials/header.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..bafa6a6 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,26 @@ + + + + + + {% block title %}Meu Site{% endblock %} + + + + + {% include "partials/header.html" %} +
+ {% block content %}

Conteúdo padrão

{% endblock %} +
+ + + diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..d38eebe --- /dev/null +++ b/templates/home.html @@ -0,0 +1,28 @@ + +{% extends "base.html" %} + +{% block title %}Home - Meu Site{% endblock %} + +{% block menu %} +{{ block.super }} +
  • Blog
  • +{% endblock %} + +{% block content %} +

    Bem-vindo, {{ user.name }}!

    +{% now "d/m/Y H:i:s" %} +

    Você tem {{ user.notifications }} notificações pendentes.

    + +

    Últimos itens:

    + + +{% with msg="Olá mundo!" %} +

    Mensagem temporária: {{ msg|upper }}

    +{% endwith %} +{% endblock %} diff --git a/templates/partials/header.html b/templates/partials/header.html new file mode 100644 index 0000000..b298c25 --- /dev/null +++ b/templates/partials/header.html @@ -0,0 +1,12 @@ +
    +

    {{ site_title|upper }}

    + +