From c56995d706f8ee7a98a66784ef95ac2f82628cda Mon Sep 17 00:00:00 2001 From: Nils Knappmeier Date: Wed, 9 Oct 2019 07:16:20 +0200 Subject: [PATCH] deprecate decorators --- docs/decorators-api.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/decorators-api.md b/docs/decorators-api.md index 566c7eb8..6c77fd99 100644 --- a/docs/decorators-api.md +++ b/docs/decorators-api.md @@ -1,5 +1,7 @@ # Decorators +**Decorators are deprecated, please join the discussion at [#1574](https://github.com/wycats/handlebars.js/issues/1574) to see what we can do about it.** + Decorators allow for blocks to be annotated with metadata or wrapped in functionality prior to execution of the block. This may be used to communicate with the containing helper or to setup a particular state in the system prior to running the block. Decorators are registered through similar methods as helpers, `registerDecorators` and `unregisterDecorators`. These can then be referenced via the friendly name in the template using the `{{* decorator}}` and `{{#* decorator}}{/decorator}}` syntaxes. These syntaxes are derivatives of the normal mustache syntax and as such have all of the same argument and whitespace behaviors.