Nette Documentation Preview

syntax
Getting Started with Latte
**************************

<div class=perex>

Templates improve code organization, separate application logic from presentation, and enhance security. They offer far better features and expressive capabilities for generating HTML than PHP itself.

Latte is the safest templating system for PHP. You'll love its intuitive syntax. A wide range of useful features will significantly simplify your work.
It provides top-notch protection against [critical vulnerabilities|safety-first] and allows you to focus on creating high-quality applications without worrying about their security.


How to write templates using Latte?
-----------------------------------

Latte is cleverly designed and easy to learn for those familiar with PHP, as they can quickly adopt its basic tags.

- First, familiarize yourself with [Latte syntax|syntax] and [TRY IT ONLINE |https://fiddle.nette.org/latte/#9cc0cf6d89#9cc0cf6d89]
- Take a look at the basic set of [tags] and [filters]
- Write templates in [editor with Latte support |recipes#Editors and IDE]


How to Use Latte in PHP?
------------------------

Implementing Latte in your new application is a matter of minutes:

- First, [install and run Latte |develop#Installation]
- Pamper yourself with the [Tracy debugging tool |develop#Debugging and Tracy]
- Extend Latte with [custom functionality |extending-latte]

If you are converting an old project written in plain PHP to Latte, the [tool for converting PHP code to Latte |cookbook/migration-from-php] will make the migration easier for you. Or are you planning to switch to Latte from Twig? We have a [Twig template converter to Latte |cookbook/migration-from-twig] for you.


What Else Can Latte Do?
-----------------------

The latte comes fully equipped, with all the essentials included.

- Your productivity will be boosted by the [mechanisms of inheritance |template-inheritance] that reuse repeated elements and structures
- The [Sandbox] armour bunker isolates templates from untrusted sources, such as those edited by users themselves
- For further inspiration, here are [tips and tricks |recipes]

</div>


{{description: Latte je nejbezpečnější šablonovací systém pro PHP. Zabraňuje spoustě bezpečnostních zranitelností. Oceníte jeho intuitivní syntaxi a oceníte spoustu užitečných vychytávek.}}

Getting Started with Latte

Templates improve code organization, separate application logic from presentation, and enhance security. They offer far better features and expressive capabilities for generating HTML than PHP itself.

Latte is the safest templating system for PHP. You'll love its intuitive syntax. A wide range of useful features will significantly simplify your work. It provides top-notch protection against critical vulnerabilities and allows you to focus on creating high-quality applications without worrying about their security.

How to write templates using Latte?

Latte is cleverly designed and easy to learn for those familiar with PHP, as they can quickly adopt its basic tags.

How to Use Latte in PHP?

Implementing Latte in your new application is a matter of minutes:

If you are converting an old project written in plain PHP to Latte, the tool for converting PHP code to Latte will make the migration easier for you. Or are you planning to switch to Latte from Twig? We have a Twig template converter to Latte for you.

What Else Can Latte Do?

The latte comes fully equipped, with all the essentials included.

  • Your productivity will be boosted by the mechanisms of inheritance that reuse repeated elements and structures
  • The Sandbox armour bunker isolates templates from untrusted sources, such as those edited by users themselves
  • For further inspiration, here are tips and tricks