templates

templates is a cursor rule for Cursor from seite-sh/seite. It costs 0 tokens per session (1,645 once invoked), scanned A, original, MIT.

A reference for Tera templates, a Jinja2-style language used to generate website HTML, and for seite's available themes and template variables.

In plain words
What is it for?
It explains template inheritance, theme choices, variables such as the site title and language, and conventions for building seite pages.
Why use it?
It reduces guesswork when changing a site's layout, theme, or data-driven content.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It explains template inheritance, theme choices, variables such as the site title and language, and conventions for building seite pages.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/seite-sh/seite/templates
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/seite-sh/seite

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for templates

README.md
[![agentmods](https://agentmods.dev/badge/rules/seite-sh/seite/templates/github.svg)](https://agentmods.dev/rules/seite-sh/seite/templates)
Your own site
<a href="https://agentmods.dev/rules/seite-sh/seite/templates"><img src="https://agentmods.dev/badge/rules/seite-sh/seite/templates/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for templates

Your own site · 80×15
<a href="https://agentmods.dev/rules/seite-sh/seite/templates"><img src="https://agentmods.dev/badge/rules/seite-sh/seite/templates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,645 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01645
Opus 5.5 $0.00000 $0.00658
Sonnet 5.5 $0.00000 $0.00329
Haiku 4.5 $0.00000 $0.00164

Measured 24d ago against content hash 58768381ec20, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

templates scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

seite-sh/.cursor/rules/templates.mdc · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Templates and Themes

Templates use Tera syntax (Jinja2-compatible).

Hard rules:

  • base.html is the theme; every other template starts with {% extends "base.html" %}.
  • Render content with {{ page.content | safe }} (the safe filter is required).
  • A theme owns layout and CSS only. seite owns SEO, search and i18n through partials that base.html includes: keep {% include "seite/head.html" %} (right after <title>), {% include "seite/search.html" %}, {% include "seite/lang-switcher.html" %} and {% include "seite/scripts.html" %} (before </body>). Move them within the layout freely; never copy a partial's contents into base.html and never delete an include when redesigning.
  • Keep <title>{% block title %}...{% endblock %}</title> in base.html (blocks cannot live in a partial).
  • Designers and agents (impeccable included) edit the layout in base.html and the look in CSS (static/css/site.css for themes started with seite theme new, the <style> element in the bundled examples).
  • Build designs directly in templates/ and content/ and preview with seite serve; never write standalone HTML mockups.
  • seite theme apply <name> overwrites base.html (a customized one is backed up first); seite theme new starts a custom design from the blank starter; seite theme list shows the starters and the gallery of examples.
  • templates/seite/<name>.html overrides a seite partial and stops its automatic updates: only when nothing else works.

Template Variables

Available in all templates:

Variable Type Description
site.title string Site title (language-specific if multilingual)
site.description string Site description
site.base_url string Base URL (e.g., https://example.com)
site.language string Default language code (configured in seite.toml)
site.author string Author name
lang string Current page language code
default_language string Default language code (same as site.language)
lang_prefix string URL prefix for current language (empty for default, "/es" for Spanish, etc.)
t object UI translation strings (override via data/i18n/{lang}.yaml)
translations array Translation links [{lang, url}] (empty if no translations)
data object Data files — data/nav.yaml → {{ data.nav }} (see Data Files section)
page.title string Page title
page.content string Rendered HTML (use {{ page.content | safe }})
page.date string? Publish date (if set)
page.updated string? Last-modified date (from updated: frontmatter)
page.description string? Page description
page.image string? Social-preview image URL (from image: frontmatter)
page.tags array Tags
page.url string URL path
page.markdown_url string? Path of the published markdown copy (e.g. /posts/hello.md, /posts/index.md); unset when no .md is written for the page
page.slug string URL slug (e.g., hello-world)
page.collection string Collection name (e.g., posts) — empty string on homepage
page.lang string Language code for this page
page.robots string? Per-page robots directive (from robots: frontmatter)
page.word_count number Word count
page.reading_time number Estimated reading time in minutes (238 WPM)
page.excerpt string? Auto-extracted excerpt (from <!-- more --> marker or first paragraph)
page.toc string Auto-generated table of contents HTML from heading hierarchy
page.extra object Arbitrary data from extra: frontmatter — access via {{ page.extra.field }}
page.taxonomies object Content pages: terms per taxonomy, e.g. page.taxonomies.categories = [{name, slug, url}]
page.related array Content pages: related pages [{title, url, date, description, score}] (same collection and language, by shared tags/categories)
page.series object? Content pages in a series: {name, url, parts: [{title, url, current}], index, total, prev, next}
nav array Sidebar nav sections [{name, label, items: [{title, url, active}]}]

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed · -17 lines 58768381ec20
  2. 2mo ago First seen · 122 lines · 0 tokens per session scan A dd06c5ece172

Subscribe to this mod's changes

templates is a cursor rule published in the GitHub repository seite-sh/seite (31 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,645 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

templates compared with cursor rules from other repositories

templates next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
templatesseite-sh/seiteCursor rule312d agoMITA0Cursor
frontend-architecturetomasz-tomczyk/critCursor rule1.4kyesterdayMITA4Cursor
proxy-auth-transporttomasz-tomczyk/critCursor rule1.4kyesterdayMITA5Cursor
frontend-jstomasz-tomczyk/critCursor rule1.4kyesterdayMITA0Cursor
gotomasz-tomczyk/critCursor rule1.4kyesterdayMITA0Cursor
frontend-csstomasz-tomczyk/critCursor rule1.4kyesterdayMITA0Cursor
ui-assetscoddy-project/coddy-agentCursor rule215yesterdayMITA0Cursor