---
title: "Templates"
version: 4.1
locale: pt-br
source: https://docs.djangoproject.com/pt-br/4.1/ref/templates/
canonical: https://djangodocs.dev/pt-br/4.1/ref/templates/
---
# Templates

Django’s template engine provides a powerful mini-language for defining the
user-facing layer of your application, encouraging a clean separation of
application and presentation logic. Templates can be maintained by anyone with
an understanding of HTML; no knowledge of Python is required. For introductory
material, see [Templates](/pt-br/4.1/topics/templates/) topic guide.

- [The Django template language](/pt-br/4.1/ref/templates/language/)

  - [Templates](/pt-br/4.1/ref/templates/language/#templates)
  - [Variables](/pt-br/4.1/ref/templates/language/#variables)
  - [Filtros](/pt-br/4.1/ref/templates/language/#filters)
  - [Tags](/pt-br/4.1/ref/templates/language/#tags)
  - [Comentários](/pt-br/4.1/ref/templates/language/#comments)
  - [Herança de modelo](/pt-br/4.1/ref/templates/language/#template-inheritance)
  - [Automatic HTML escaping](/pt-br/4.1/ref/templates/language/#automatic-html-escaping)
  - [Accessing method calls](/pt-br/4.1/ref/templates/language/#accessing-method-calls)
  - [Custom tag and filter libraries](/pt-br/4.1/ref/templates/language/#custom-tag-and-filter-libraries)
- [Built-in template tags and filters](/pt-br/4.1/ref/templates/builtins/)

  - [Built-in tag reference](/pt-br/4.1/ref/templates/builtins/#built-in-tag-reference)
  - [Built-in filter reference](/pt-br/4.1/ref/templates/builtins/#built-in-filter-reference)
  - [Internationalization tags and filters](/pt-br/4.1/ref/templates/builtins/#internationalization-tags-and-filters)
  - [Other tags and filters libraries](/pt-br/4.1/ref/templates/builtins/#other-tags-and-filters-libraries)
- [The Django template language: for Python programmers](/pt-br/4.1/ref/templates/api/)

  - [Visão Geral](/pt-br/4.1/ref/templates/api/#overview)
  - [Configuring an engine](/pt-br/4.1/ref/templates/api/#configuring-an-engine)
  - [Loading a template](/pt-br/4.1/ref/templates/api/#loading-a-template)
  - [Rendering a context](/pt-br/4.1/ref/templates/api/#rendering-a-context)
  - [Playing with `Context` objects](/pt-br/4.1/ref/templates/api/#playing-with-context-objects)
  - [Loading templates](/pt-br/4.1/ref/templates/api/#loading-templates)
  - [Custom loaders](/pt-br/4.1/ref/templates/api/#custom-loaders)
  - [Template origin](/pt-br/4.1/ref/templates/api/#template-origin)

> **See also**
>
> For information on writing your own custom tags and filters, see
> [How to create custom template tags and filters](/pt-br/4.1/howto/custom-template-tags/).
>
> To learn how to override templates in other Django applications, see
> [How to override templates](/pt-br/4.1/howto/overriding-templates/).
