def define_block(self, name, block):
    'Called by the parser \'defblock\' rule when a BLOCK definition is\n        encountered in the template.\n\n        The name of the block is passed in the first parameter and a\n        reference to the compiled block is passed in the second.  This\n        method stores the block in the self.defblock dictionary which has\n        been initialised by parse() and will later be used by the same\n        method to call the store() method on the calling cache to define\n        the block "externally".\n        '
    if (self.defblock is None):
        return None
    self.defblock[name] = block
    return None
Called by the parser 'defblock' rule when a BLOCK definition is
encountered in the template.

The name of the block is passed in the first parameter and a
reference to the compiled block is passed in the second.  This
method stores the block in the self.defblock dictionary which has
been initialised by parse() and will later be used by the same
method to call the store() method on the calling cache to define
the block "externally".
def define_block(self, name, block):
    'Called by the parser \'defblock\' rule when a BLOCK definition is\n        encountered in the template.\n\n        The name of the block is passed in the first parameter and a\n        reference to the compiled block is passed in the second.  This\n        method stores the block in the self.defblock dictionary which has\n        been initialised by parse() and will later be used by the same\n        method to call the store() method on the calling cache to define\n        the block "externally".\n        '
    if (self.defblock is None):
        return None
    self.defblock[name] = block
    return None