def render_blocks(self, template_name, **context):
blocks = {}<EOL>template = self._get_template(template_name)<EOL>for block in template.blocks:<EOL><INDENT>blocks[block] = self._render_context(template,<EOL>template.blocks[block],<EOL>**context)<EOL><DEDENT>return blocks<EOL>
To render all the blocks
:param template_name: The template file name
:param context: **kwargs context to render
:retuns dict: of all the blocks with block_name as key