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 }}

    + +