How to pass data into a partial template.
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" } )

I am the creator of CraftQuest, a web developer, and former software team manager. I spend most of my time improving CraftQuest with code and courses. When I'm not in front of the computer, I spend my time with my family, and running on the roads and trails of Austin, TX.