Inherit markup from another template.

Signal that this template extends another template. The extends tag must be the first tag in a template that inherits from another template.


{% extends "base.tpl" %}

All named blocks in this template will replace the similar named blocks in the template base.tpl.

Unlike Django the template name must be a string literal, variables are not allowed.

Edit on GitHub

cycle Tags filter

Referred by


Define a block in a template and overrules a block from an inherited template.


Modules are the building blocks of Zotonic. They add functionality to your Zotonic website such as:


Templates are text files marked up using the Zotonic template language. Zotonic interprets that mark-up to dynamically…