Template API

Use template tags and filters to render dynamic content inside page templates.

Example

<h1>{{ page.title }}</h1>
{% content_block "main" %}
{% latest_posts limit=5 %}

Conventions

  • Keep logic in Python; templates should remain thin.

  • Names are lowercase with underscores (latest_posts).