jinja2.environment.CodeGenerator.blockvisit

CodeGenerator.blockvisit(nodes, frame)[source]

Visit a list of nodes as block in a frame. If the current frame is no buffer a dummy if 0: yield None is written automatically unless the force_generator parameter is set to False.