Closed tanner0101 closed 6 years ago
This PR allows for userInfo to be passed to render calls. Related to #28.
userInfo
return req.view().render("welcome", ["name": "Vapor"], userInfo: ["foo": "bar"])
You can then access this userInfo in TagRenderer.
TagRenderer
final class FooTag: TagRenderer { func render(_ tag: TagContext) -> ... { print(tag.context.userInfo["foo"]) } }
Hey @tanner0101, you just merged a pull request, have a coin!
You now have 842 coins.
This PR allows for
userInfo
to be passed to render calls. Related to #28.You can then access this
userInfo
inTagRenderer
.