From 5ffefb5865ec0ca73249b8ddae3a5cbe4bcc8da2 Mon Sep 17 00:00:00 2001 From: David Jennes Date: Wed, 27 Jul 2022 18:32:58 +0200 Subject: [PATCH] Changelog entry & docs --- CHANGELOG.md | 4 ++++ docs/templates.rst | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c10086f..2382f632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ _None_ - Made the `Template.render(_:)` method (that accepts a `Context`) public. [David Jennes](https://github.com/djbe) [#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 diff --git a/docs/templates.rst b/docs/templates.rst index 7094ae6c..1d4c288d 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -22,6 +22,7 @@ following lookup: - Dictionary lookup - Array and string lookup (first, last, count, by index) - Key value coding lookup +- @dynamicMemberLookup when conforming to our `DynamicMemberLookup` protocol - Type introspection (via ``Mirror``) For example, if `people` was an array: