If I write an addon and want to add variables to the addon, how could i get the variables inside the tags addon? Example:

{{ addonname var="varContent" }}

class addonnameTags extends Tags
{
    public function index($var)
    {
        return $var;
    }
}

This givs no result.