+
     [;i   c                   sH    ^ RI Ht ^ RI Ht ^RIHt ^ RIt ! R R]4      tR# )    )print_function)unicode_literals)ViewNc                   s6   a  ] tR t^t o RtR tR tR tRtV t	R# )
BlocksViewz
Assign ``blocks`` with this list

[
        {
                "title": "...",
                "content": "some text",
        },
        ...
]
c                s>   \        V P                  P                  4       Fy  w  rVR ,          '       g   K  RV9   d   V P                  VR,          4       V P                  VR ,          RR7       V P	                  V4      '       g   Kh  V P                  R4       K{  	  R# )contenttitle )ZendN)Z	enumerateargsblocksZprintnextselfZindexblocks   &  8/usr/lib/python3.14/site-packages/tracer/views/blocks.pyrenderZBlocksView.render   so    		 0 01leI%	ZZgJJuYRJ(yy	ZZ^ 2    c                sx    V P                   P                  V^,           R  F  pVR,          '       g   K   R# 	  R# )z<Return True if there is any nonempty block after given indexNr   TF)r   r	   r   s   && r   r
   ZBlocksView.next    s4    yya)eI * 
r   c                s    V P                   P                  R,           F=  pVR,          '       g   K  RVP                  4       9   g   K+  VR,          '       g   K<   R# 	  R# )z@Return True if at least one block's content & title is not empty:r    NNr   r   TF)r   r	   Zkeys)r   r   s   & r   has_content_and_titleZ BlocksView.has_content_and_title'   sG    !YY--b11E	**w%**,/F#(>>/3 2 r    N)
Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r
   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s     
 r   r   )Z
__future__r   r   r   r   Zsysr   r   r   r   <module>r      s    % '  
% %r   