Changelog entry & docs

This commit is contained in:
David Jennes
2022-07-27 18:32:58 +02:00
parent 7247d0a83d
commit 099b8414d2
2 changed files with 5 additions and 0 deletions

View File

@@ -12,6 +12,10 @@ _None_
- Made the `Template.render(_:)` method (that accepts a `Context`) public. - Made the `Template.render(_:)` method (that accepts a `Context`) public.
[David Jennes](https://github.com/djbe) [David Jennes](https://github.com/djbe)
[#322](https://github.com/stencilproject/Stencil/pull/322) [#322](https://github.com/stencilproject/Stencil/pull/322)
- Enable dynamic member lookup using a new `DynamicMemberLookup` protocol. Conform your own types to this protocol to support dynamic member from with contexts.
[Ilya Puchka](https://github.com/ilyapuchka)
[#219](https://github.com/stencilproject/Stencil/issues/219)
[#246](https://github.com/stencilproject/Stencil/pull/246)
### Deprecations ### Deprecations

View File

@@ -22,6 +22,7 @@ following lookup:
- Dictionary lookup - Dictionary lookup
- Array and string lookup (first, last, count, by index) - Array and string lookup (first, last, count, by index)
- Key value coding lookup - Key value coding lookup
- @dynamicMemberLookup when conforming to our `DynamicMemberLookup` marker protocol
- Type introspection (via ``Mirror``) - Type introspection (via ``Mirror``)
For example, if `people` was an array: For example, if `people` was an array: