def add_to_context(self, name, **attrs):
        """Add attributes to a context.
        """
        context = self.get_context(name=name)
        attrs_ = context['context']
        attrs_.update(**attrs)
Add attributes to a context.