third_party/blink/renderer/bindings/scripts/bind_gen/codegen_context.py
def template_bindings(self):
        """
        Returns a bindings object to be passed into
        |CodeNode.add_template_vars|.  Only properties with a non-None value are
        bound so that it's easy to detect invalid use cases (use of an unbound
        template variable raises a NameError).
        """
        bindings = {}

        for attr in self._context_attrs.keys():
            value = getattr(self, attr)
            if value is None:
                value = NonRenderable(attr)
            bindings[attr] = value

        for attr in self._computational_attrs:
            value = getattr(self, attr)
            if value is None:
                value = NonRenderable(attr)
            bindings[attr.strip("_")] = value

        return bindings

        Returns a bindings object to be passed into
        |CodeNode.add_template_vars|.  Only properties with a non-None value are
        bound so that it's easy to detect invalid use cases (use of an unbound
        template variable raises a NameError).
        
Returns a bindings object to be passed into
|CodeNode.add_template_vars|.  Only properties with a non-None value are
bound so that it's easy to detect invalid use cases (use of an unbound
template variable raises a NameError).
Returns a bindings object to be passed into |CodeNode . add_template_vars| . Only properties with a non - None value are bound so that it ' s easy to detect invalid use cases ( use of an unbound template variable raises a NameError ) .
def template_bindings(self):
        bindings = {}
        for attr in self._context_attrs.keys():
            value = getattr(self, attr)
            if value is None:
                value = NonRenderable(attr)
            bindings[attr] = value
        for attr in self._computational_attrs:
            value = getattr(self, attr)
            if value is None:
                value = NonRenderable(attr)
            bindings[attr.strip("_")] = value
        return bindings
def template_bindings ( self ) : bindings = { } for attr in self . _context_attrs . keys ( ) : value = getattr ( self , attr ) if value is None : value = NonRenderable ( attr ) bindings [ attr ] = value for attr in self . _computational_attrs : value = getattr ( self , attr ) if value is None : value = NonRenderable ( attr ) bindings [ attr . strip ( "_" ) ] = value return bindings
Returns a bindings object to be passed into
|CodeNode.add_template_vars|.
Returns a bindings object to be passed into |CodeNode . add_template_vars| .
"""
        Returns a bindings object to be passed into
        |CodeNode.add_template_vars|.  Only properties with a non-None value are
        bound so that it's easy to detect invalid use cases (use of an unbound
        template variable raises a NameError).
        """
self