I am using the wonderful feature to pass variables into a snippet with snippet('my_snippet', array('var' => $var)) but now I’d love to go the other way round and fetch a variable that was generated inside the snippet.
How is this done?
I’m sure that it works, though, because I’ve already done it. You can test it with a simple example, e.g. define two simple string variables in a template: