From de7d6083cab91dc47a749bec41ed82468ff5f299 Mon Sep 17 00:00:00 2001 From: "Steffen D. Sommer" Date: Tue, 11 Dec 2018 10:22:20 +0100 Subject: [PATCH] Update README.md --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index ec98300..0a3c856 100644 --- a/README.md +++ b/README.md @@ -59,19 +59,13 @@ Please note that the `SessionsMiddleware` needs to be added to the same route gr ### Adding the Leaf tag -#### Using a shared Leaf tag config - -This package supports using a shared Leaf tag config which removes the task of registering the tags from the consumer of this package. Please see [this description](https://github.com/nodes-vapor/sugar#mutable-leaf-tag-config) if you want to use this. - -#### Manually registering the Leaf tag(s) - In order to render Flash messages, you will need to add the Flash Leaf tag: ```swift public func configure(_ config: inout Config, _ env: inout Environment, _ services: inout Services) throws { services.register { _ -> LeafTagConfig in var tags = LeafTagConfig.default() - tags.use(FlashTag(), as: "flash") + tags.useFlashLeafTags() return tags } }