Skip to content

Commit

Permalink
latte: simplified "{..}"
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 18, 2024
1 parent 679b0e7 commit 88374ec
Show file tree
Hide file tree
Showing 84 changed files with 152 additions and 152 deletions.
2 changes: 1 addition & 1 deletion application/bg/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $url = $this->link('Product:show', [$product->id, 'lang' => 'cs']);
Ако искаме да направим препратка към презентаторите в шаблона на компонента, използваме тага `{plink}`:

```latte
<a href="{plink Home:default}">главная страница</a>
<a href={plink Home:default}>главная страница</a>
```

или в кода
Expand Down
2 changes: 1 addition & 1 deletion application/cs/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Protože [komponenty|components] jsou samostatné znovupoužitelné celky, kter
Pokud bychom chtěli v šabloně komponenty odkazovat na presentery, použijeme k tomu značku `{plink}`:

```latte
<a href="{plink Home:default}">úvod</a>
<a href={plink Home:default}>úvod</a>
```

nebo v kódu
Expand Down
2 changes: 1 addition & 1 deletion application/de/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Da [Komponenten |components] separate, wiederverwendbare Einheiten sind, die kei
Wenn wir auf Präsentatoren in der Komponentenvorlage verlinken wollen, verwenden wir das Tag `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

oder im Code
Expand Down
2 changes: 1 addition & 1 deletion application/el/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $url = $this->link('Product:show', [$product->id, 'lang' => 'cs']);
Αν θέλουμε να συνδέσουμε με παρουσιαστές στο πρότυπο συστατικού, χρησιμοποιούμε την ετικέτα `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

ή στον κώδικα
Expand Down
2 changes: 1 addition & 1 deletion application/en/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Because [components] are separate reusable units that should have no relations t
If we want to link to presenters in the component template, we use the tag `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

or in the code
Expand Down
2 changes: 1 addition & 1 deletion application/es/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Dado que los [componentes |components] son unidades reutilizables independientes
Si queremos enlazar con presentadores en la plantilla de componentes, utilizaremos la etiqueta `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

o en el código
Expand Down
2 changes: 1 addition & 1 deletion application/fr/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Comme les [composants |components] sont des unités distinctes réutilisables qu
Si nous voulons créer un lien vers les présentateurs dans le modèle de composant, nous utilisons la balise `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

ou dans le code
Expand Down
2 changes: 1 addition & 1 deletion application/hu/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Mivel a [komponensek |components] különálló, újrafelhasználható egységek
Ha a komponenssablonban előadókra akarunk hivatkozni, akkor a `{plink}` címkét használjuk:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

vagy a kódban
Expand Down
2 changes: 1 addition & 1 deletion application/it/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Poiché i [componenti |components] sono unità riutilizzabili separate che non d
Se vogliamo collegarci ai presentatori nel modello del componente, usiamo il tag `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

o nel codice
Expand Down
2 changes: 1 addition & 1 deletion application/pl/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Ponieważ [komponenty |components] są samodzielnymi, wielokrotnego użytku jedn
Gdybyśmy chcieli odwołać się do prezenterów w szablonie komponentu, użylibyśmy do tego celu tagu `{plink}`:

```latte
<a href="{plink Home:default}">úvod</a>
<a href={plink Home:default}>home</a>
```

lub w kodzie
Expand Down
2 changes: 1 addition & 1 deletion application/pt/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Como [os componentes |components] são unidades reutilizáveis separadas que nã
Se quisermos fazer um link para apresentadores no modelo de componente, usamos a tag `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

ou no código
Expand Down
2 changes: 1 addition & 1 deletion application/ro/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Deoarece [componentele |components] sunt unități separate reutilizabile care n
Dacă dorim să facem legătura cu prezentatorii din șablonul componentei, folosim eticheta `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

sau în cod
Expand Down
2 changes: 1 addition & 1 deletion application/ru/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $url = $this->link('Product:show', [$product->id, 'lang' => 'cs']);
Если мы хотим сделать ссылку на презентеры в шаблоне компонента, мы используем тег `{plink}`:

```latte
<a href="{plink Home:default}">главная страница</a>
<a href={plink Home:default}>главная страница</a>
```

or in the code
Expand Down
2 changes: 1 addition & 1 deletion application/sl/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Ker so [komponente |components] ločene enote za večkratno uporabo, ki naj ne b
Če se želimo v predlogi komponente povezati s predstavniki, uporabimo oznako `{plink}`:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

ali v kodi
Expand Down
2 changes: 1 addition & 1 deletion application/tr/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Bileşendeki Bağlantılar .[#toc-links-in-component]
Bileşen şablonunda sunum yapanlara bağlantı vermek istiyorsak `{plink}` etiketini kullanırız:

```latte
<a href="{plink Home:default}">home</a>
<a href={plink Home:default}>home</a>
```

veya kodda
Expand Down
2 changes: 1 addition & 1 deletion application/uk/creating-links.texy
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $url = $this->link('Product:show', [$product->id, 'lang' => 'cs']);
Якщо ми хочемо зробити посилання на презентери в шаблоні компонента, ми використовуємо тег `{plink}`:

```latte
<a href="{plink Home:default}">главная страница</a>
<a href={plink Home:default}>главная страница</a>
```

or in the code
Expand Down
10 changes: 5 additions & 5 deletions latte/bg/filters.texy
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ checkUrl .[filter]

```latte
{var $link = 'javascript:window.close()'}
<a data-href="{$link|checkUrl}">checked</a>
<a data-href="{$link}">unchecked</a>
<a data-href={$link|checkUrl}>checked</a>
<a data-href={$link}>unchecked</a>
```

Отпечатва:
Expand Down Expand Up @@ -235,7 +235,7 @@ dataStream(string mimetype = detect) .[filter]
Нека имаме изображение в променлива `$img = Image::fromFile('obrazek.gif')`, тогава

```latte
<img src="{$img|dataStream}">
<img src={$img|dataStream}>
```

Отпечатва например:
Expand Down Expand Up @@ -416,8 +416,8 @@ nocheck .[filter]
```latte
{var $link = 'javascript:window.close()'}

<a href="{$link}">checked</a>
<a href="{$link|nocheck}">unchecked</a>
<a href={$link}>checked</a>
<a href={$link|nocheck}>unchecked</a>
```

Отпечатъци:
Expand Down
2 changes: 1 addition & 1 deletion latte/bg/safety-first.texy
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Latte автоматично проверява дали променливат
```latte
{var $link = 'javascript:attack()'}

<a href="{$link}">click here</a>
<a href={$link}>click here</a>
```

Пише:
Expand Down
2 changes: 1 addition & 1 deletion latte/bg/syntax.texy
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ n:атрибути .[#toc-n-attributes]
Или с префикс `tag-` функционалността се прилага само за HTML тагове:

```latte
<p><a href="{$url}" n:tag-if="$url">Title</a></p>
<p><a href={$url} n:tag-if="$url">Title</a></p>
```

В зависимост от стойността на променливата `$url` ще бъде изведено следното:
Expand Down
2 changes: 1 addition & 1 deletion latte/bg/tags.texy
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Age: {date('Y') - $birth}<br>
Използвайте условието `{ifset $var}`, за да определите дали дадена променлива (или няколко променливи) съществува и има ненулева стойност. Всъщност това е същото като `if (isset($var))` в PHP. Както всеки сдвоен таг, и този може да бъде записан като [n:attribute |syntax#n-attributes], затова нека го покажем с пример:

```latte
<meta name="robots" content="{$robots}" n:ifset="$robots">
<meta name="robots" content={$robots} n:ifset="$robots">
```


Expand Down
10 changes: 5 additions & 5 deletions latte/cs/filters.texy
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ Vynutí ošetření URL adresy. Kontroluje, zda proměnná obsahuje webovou URL

```latte
{var $link = 'javascript:window.close()'}
<a data-href="{$link|checkUrl}">kontrolované</a>
<a data-href="{$link}">nekontrolované</a>
<a data-href={$link|checkUrl}>kontrolované</a>
<a data-href={$link}>nekontrolované</a>
```

Vypíše:
Expand Down Expand Up @@ -235,7 +235,7 @@ Konvertuje obsah do data URI scheme. Pomocí něj lze do HTML nebo CSS vkládat
Mějme v proměnné obrázek `$img = Image::fromFile('obrazek.gif')`, poté

```latte
<img src="{$img|dataStream}">
<img src={$img|dataStream}>
```

Vypíše například:
Expand Down Expand Up @@ -416,8 +416,8 @@ Pokud odkaz používá jiné schéma, např. `javascript:` nebo `data:`, a jste
```latte
{var $link = 'javascript:window.close()'}

<a href="{$link}">kontrolované</a>
<a href="{$link|nocheck}">nekontrolované</a>
<a href={$link}>kontrolované</a>
<a href={$link|nocheck}>nekontrolované</a>
```

Vypíše:
Expand Down
2 changes: 1 addition & 1 deletion latte/cs/safety-first.texy
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Latte automaticky kontroluje, zda proměnná použitá v atributech `src` nebo `
```latte
{var $link = 'javascript:attack()'}

<a href="{$link}">klikni</a>
<a href={$link}>klikni</a>
```

Vypíše:
Expand Down
2 changes: 1 addition & 1 deletion latte/cs/syntax.texy
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Vypíše se:
Nebo pomocí prefixu `tag-` aplikujeme funkcionalitu jen na samotné HTML značky:

```latte
<p><a href="{$url}" n:tag-if="$url">Title</a></p>
<p><a href={$url} n:tag-if="$url">Title</a></p>
```

Což vypíše v závislosti na proměnné `$url`:
Expand Down
2 changes: 1 addition & 1 deletion latte/cs/tags.texy
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Viz také [`{ifset block}` |template-inheritance#Kontrola existence bloků]
Pomocí podmínky `{ifset $var}` zjistíme, zda proměnná (nebo více proměnných) existuje a má ne*null*ovou hodnotu. Vlastně jde o totéž, jako `if (isset($var))` v PHP. Jako každou párovou značku ji lze zapisovat i v podobě [n:attributu|syntax#n:atributy], tak si to ukažme jako příklad:

```latte
<meta name="robots" content="{$robots}" n:ifset="$robots">
<meta name="robots" content={$robots} n:ifset="$robots">
```


Expand Down
10 changes: 5 additions & 5 deletions latte/de/filters.texy
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ Erzwingt URL-Sanitization. Sie prüft, ob die Variable eine Web-URL enthält (d.

```latte
{var $link = 'javascript:window.close()'}
<a data-href="{$link|checkUrl}">checked</a>
<a data-href="{$link}">unchecked</a>
<a data-href={$link|checkUrl}>checked</a>
<a data-href={$link}>unchecked</a>
```

Druckt:
Expand Down Expand Up @@ -235,7 +235,7 @@ Konvertiert den Inhalt in ein Daten-URI-Schema. Es kann verwendet werden, um Bil
Nehmen wir an, ein Bild befindet sich in einer Variablen `$img = Image::fromFile('obrazek.gif')`, dann

```latte
<img src="{$img|dataStream}">
<img src={$img|dataStream}>
```

Druckt zum Beispiel:
Expand Down Expand Up @@ -416,8 +416,8 @@ Wenn der Link ein anderes Schema verwendet, z. B. `javascript:` oder `data:`, un
```latte
{var $link = 'javascript:window.close()'}

<a href="{$link}">checked</a>
<a href="{$link|nocheck}">unchecked</a>
<a href={$link}>checked</a>
<a href={$link|nocheck}>unchecked</a>
```

Drucke:
Expand Down
2 changes: 1 addition & 1 deletion latte/de/safety-first.texy
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Latte prüft automatisch, ob die in den Attributen `src` oder `href` verwendete
```latte
{var $link = 'javascript:attack()'}

<a href="{$link}">click here</a>
<a href={$link}>click here</a>
```

Schreibt:
Expand Down
2 changes: 1 addition & 1 deletion latte/de/syntax.texy
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Druckt:
Oder durch die Verwendung des Präfixes `tag-` wird die Funktionalität nur auf die HTML-Tags angewendet:

```latte
<p><a href="{$url}" n:tag-if="$url">Title</a></p>
<p><a href={$url} n:tag-if="$url">Title</a></p>
```

Je nach dem Wert der Variable `$url` wird dies gedruckt:
Expand Down
2 changes: 1 addition & 1 deletion latte/de/tags.texy
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Siehe auch [`{ifset block}` |template-inheritance#checking-block-existence]
Verwenden Sie die `{ifset $var}` Bedingung, um festzustellen, ob eine Variable (oder mehrere Variablen) existiert und einen Nicht-Null-Wert hat. Es ist eigentlich das Gleiche wie `if (isset($var))` in PHP. Wie jedes Paar-Tag kann es in der Form von [n:attribute |syntax#n:attributes] geschrieben werden, also zeigen wir es in einem Beispiel:

```latte
<meta name="robots" content="{$robots}" n:ifset="$robots">
<meta name="robots" content={$robots} n:ifset="$robots">
```


Expand Down
10 changes: 5 additions & 5 deletions latte/el/filters.texy
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ checkUrl .[filter]

```latte
{var $link = 'javascript:window.close()'}
<a data-href="{$link|checkUrl}">checked</a>
<a data-href="{$link}">unchecked</a>
<a data-href={$link|checkUrl}>checked</a>
<a data-href={$link}>unchecked</a>
```

Εκτυπώνει:
Expand Down Expand Up @@ -235,7 +235,7 @@ dataStream(string mimetype = detect) .[filter]
Ας έχουμε μια εικόνα σε μια μεταβλητή `$img = Image::fromFile('obrazek.gif')`, τότε

```latte
<img src="{$img|dataStream}">
<img src={$img|dataStream}>
```

Εκτυπώνει για παράδειγμα:
Expand Down Expand Up @@ -416,8 +416,8 @@ nocheck .[filter]
```latte
{var $link = 'javascript:window.close()'}

<a href="{$link}">checked</a>
<a href="{$link|nocheck}">unchecked</a>
<a href={$link}>checked</a>
<a href={$link|nocheck}>unchecked</a>
```

Εκτυπώσεις:
Expand Down
2 changes: 1 addition & 1 deletion latte/el/safety-first.texy
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Latte βλέπει το πρότυπο με τον ίδιο τρόπο που τ
```latte
{var $link = 'javascript:attack()'}

<a href="{$link}">click here</a>
<a href={$link}>click here</a>
```

Γράφει:
Expand Down
2 changes: 1 addition & 1 deletion latte/el/syntax.texy
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ n:attributes .[#toc-n-attributes]
Η με τη χρήση του προθέματος `tag-` η λειτουργικότητα εφαρμόζεται μόνο στις ετικέτες HTML:

```latte
<p><a href="{$url}" n:tag-if="$url">Title</a></p>
<p><a href={$url} n:tag-if="$url">Title</a></p>
```

Ανάλογα με την τιμή της μεταβλητής `$url` αυτό θα εκτυπωθεί:
Expand Down
2 changes: 1 addition & 1 deletion latte/el/tags.texy
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Age: {date('Y') - $birth}<br>
Χρησιμοποιήστε τη συνθήκη `{ifset $var}` για να προσδιορίσετε αν μια μεταβλητή (ή πολλαπλές μεταβλητές) υπάρχει και έχει μη μηδενική τιμή. Στην πραγματικότητα είναι το ίδιο με το `if (isset($var))` στην PHP. Όπως κάθε ετικέτα pair, μπορεί να γραφτεί με τη μορφή [n:attribute |syntax#n:attributes], οπότε ας το δείξουμε σε παράδειγμα:

```latte
<meta name="robots" content="{$robots}" n:ifset="$robots">
<meta name="robots" content={$robots} n:ifset="$robots">
```


Expand Down
Loading

0 comments on commit 88374ec

Please sign in to comment.