latte-templates

Author and validate Latte templates for Nette applications.

41|4|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/nette/claude-code --skill latte-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: latte-templates
Source: https://github.com/nette/claude-code/tree/main/plugins/nette/skills/latte-templates
Command: npx skills add https://github.com/nette/claude-code --skill latte-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams ensure Latte templates are consistent and valid across Nette applications by providing guiding principles, patterns, and examples for authoring templates.

Core Features & Use Cases

  • Consistent template authoring with Latte syntax, including tags, filters, and blocks.
  • Reusable template patterns and inheritance for scalable UI components.
  • Use Case: A project migrating multiple views to Latte can standardize layouts and partials, reducing bugs and rendering issues.

Quick Start

Install Latte via Composer: composer require latte/latte Start by creating a latte template file and referencing it in a Presenter or Template class. Validate templates against Latte syntax and common patterns using the included guidelines.

Frequently Asked Questions about latte-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create consistent Latte templates in Nette applications?

Latte template authoring in Nette involves applying standardized syntax patterns for tags, filters, and blocks to ensure consistency. This approach reduces rendering bugs and maintains scalable UI components across multiple project views.

What's the best way to use layout inheritance in Latte templating?

The best way to use layout inheritance in Latte templating is by defining reusable template patterns and blocks. This allows child templates to extend base layouts, creating scalable UI components without duplicating view code.

Do I need Composer to install Latte templating features?

Yes, you need a PHP runtime with Composer to install Latte templating features. Run composer require latte/latte to access Latte syntax, tags, filters, and safe rendering capabilities for your Nette application views.

How does safe rendering work in Latte templates?

Safe rendering in Latte templates works by applying consistent validation and guiding principles against standard syntax and common patterns. This prevents rendering issues and security vulnerabilities when building and maintaining real-world views.

Can I validate Latte syntax when migrating multiple views?

Yes, you can validate Latte syntax when migrating multiple views by checking templates against common patterns and guidelines. This standardizes layouts and partials, effectively reducing bugs and rendering issues during project migrations.

Why should I use Latte templating over other PHP templating engines?

You should use Latte templating over other PHP engines for its secure rendering and native Nette framework integration. It provides consistent template validation, layout inheritance, and reusable patterns that reduce bugs in real-world applications.