As part of the beta 7 release, Craft CMS now includes the ability to pass variables into therender()
method so you use the data inside of your partials templates.
This new addition was a pull request from Andrew Welch after a discussion on the Craft CMS Discord server.
Now you can do something like:
block.render( { themeColor: "gray-900" } )
Craft CMS 5 Guide is made up of the following videos: