Skip to content

Commit e6b9ade

Browse files
committed
wip
1 parent 9774149 commit e6b9ade

15 files changed

Lines changed: 729 additions & 805 deletions

latte/en/@left-menu.texy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
- For Developers 🧮
1717
- [Practices for Developers |develop]
1818
- [Extending Latte]
19-
- [Creating an Extension |creating-extension]
2019

2120
- [Cookbook 💡|cookbook/@home]
2221
- [Migration from Twig |cookbook/migration-from-twig]

latte/en/compiler-passes.texy

Whitespace-only changes.

latte/en/cookbook/migration-from-latte2.texy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ API Changes
2222

2323
The API changes only apply to adding custom tags. The rest of the API remains the same as version 2, i.e. the same way to render templates, pass parameters, register filters.
2424

25-
The exception is the replacement of the so-called dynamic filter `Engine::addFilter(null, ...)` with [filter loader |/extending-latte#Filter Loader], which differs in that it always returns callable and is registered with the `Engine::addFilterLoader()` method.
25+
The exception is the replacement of the so-called dynamic filter `Engine::addFilter(null, ...)` with [filter loader |/custom-filters#Filter Loader], which differs in that it always returns callable and is registered with the `Engine::addFilterLoader()` method.
2626

2727
The API for adding custom tags is completely different, so add-ons designed for Latte 2 won't work with it. See also [#Updates to add-ons].
2828

@@ -53,7 +53,7 @@ And more edge cases:
5353
Updates to Add-Ons
5454
==================
5555

56-
With the complete rewrite of the parser, the way to write custom tags has completely changed. If you have custom tags created for Latte, you will need to re-write them for version 3, see [documentation|/creating-extension].
56+
With the complete rewrite of the parser, the way to write custom tags has completely changed. If you have custom tags created for Latte, you will need to re-write them for version 3, see [documentation|/custom-tags].
5757

5858
If you are using a foreign add-on that adds tags, you will need to wait until the author releases a version for Latte 3. The `nette/application`, `nette/caching` and `nette/forms` libraries in version 3.1, as well as Texy, have already been updated and work with both Latte 2 and 3.
5959

@@ -208,7 +208,7 @@ $this->latte->onCompile[] = function (Latte\Engine $latte) {
208208
};
209209
```
210210

211-
Latte 3 is extended using [extensions|/creating-extension]. A trivial extension adding the `foo` tag would look like this:
211+
Latte 3 is extended using [extensions|/extending-latte]. A trivial extension adding the `foo` tag would look like this:
212212

213213
```php
214214
// new code for Latte 3
@@ -254,7 +254,7 @@ class FooNode extends Latte\Compiler\Nodes\StatementNode
254254
}
255255
```
256256

257-
Furthermore, the mask in `$context->format()` no longer has `%node.***` abbreviations, it is assumed that you [parse the tag content |/creating-extension#Tag Parsing Function] first. So we use the parser to parse the content into variables (subnodes), and then we write it out:
257+
Furthermore, the mask in `$context->format()` no longer has `%node.***` abbreviations, it is assumed that you [parse the tag content |/custom-tags#Tag Parsing Function] first. So we use the parser to parse the content into variables (subnodes), and then we write it out:
258258

259259
```php
260260
use Latte\Compiler\Nodes\Php\Expression\ArrayNode;
@@ -286,7 +286,7 @@ class FooNode extends Latte\Compiler\Nodes\StatementNode
286286
}
287287
```
288288

289-
Finally, we will add the `getIterator()` method to allow subnodes to be traversed when [traversing |/creating-extension#Node Traverser]:
289+
Finally, we will add the `getIterator()` method to allow subnodes to be traversed when [traversing |/custom-tags#Node Traverser]:
290290

291291
```php
292292
class FooNode extends Latte\Compiler\Nodes\StatementNode

0 commit comments

Comments
 (0)