Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
added macro {php …} as replacement for {? …} [Closes nette#207]
Browse files Browse the repository at this point in the history
  • Loading branch information
pilec authored and dg committed Mar 13, 2015
1 parent 5ba0640 commit b4a0970
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cs/default-macros.texy
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Zajímají vás bližší informace o [syntaxi Latte |templating#latte] nebo o [
|---------------------------
| `{include 'file.latte'}` | [načte šablonu z dalšího souboru |#Vložení souboru]
| `{cache $key} … {/cache}` | [cachuje část šablony |caching#cachovani-v-sablonach]
| `{? expression}` | [vyhodnotí výraz, ale nevypíše |#Vyhodnocení kódu]
| `{php expression}` | [vyhodnotí výraz, ale nevypíše |#Vyhodnocení kódu]
| `{* text komentáře *}` | komentář, bude odstraněn
| `{syntax mode} … {/syntax}` | [změna syntaxe maker za běhu |#Změna syntaxe]
| `{use Class}` | načte nová makra
Expand Down Expand Up @@ -327,7 +327,7 @@ Makro `{include}` se kromě vkládání souborů používá i pro [#vkládání



Vyhodnocení kódu `{? expression}` .{toc: Vyhodnocení kódu}
Vyhodnocení kódu `{php expression}` .{toc: Vyhodnocení kódu}
----------------

Vyhodnotí kód a nic nevypisuje.
Expand Down
4 changes: 2 additions & 2 deletions en/default-macros.texy
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Are you interested in taking a closer look at [Latte syntax |templating#latte]?
|---------------------------
| `{include 'file.latte'}` | [includes a template from other file |#File including]
| `{cache $key} … {/cache}` | [caches a template section |caching#caching-in-templates]
| `{? expression}` | [evaluates an expression without printing it |#Code evaluation]
| `{php expression}` | [evaluates an expression without printing it |#Code evaluation]
| `{* comment text *}` | a comment (removed from evaluation)
| `{syntax mode} … {/syntax}` | [switches the syntax at runtime |#Syntax switching]
| `{use Class}` | loads new user-defined macros
Expand Down Expand Up @@ -288,7 +288,7 @@ In addition to including files the `{include}` macro is also used to [include bl



Code evaluation `{? expression}` .{toc: Code evaluation}
Code evaluation `{php expression}` .{toc: Code evaluation}
----------------

This macro evaluates the code written inside but it does't print it.
Expand Down

0 comments on commit b4a0970

Please sign in to comment.