Changelog entry & docs
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user