Skip to content
Extraits de code Groupes Projets
Bifurcation depuis spip / spip
Le projet source a une visibilité limitée.
  • Fil's avatar
    02600a4a
    les boucles ENUM et DATA arrivent : · 02600a4a
    Fil a rédigé
    Boucle POUR:
    ============
    
    <BOUCLE_x(POUR){tableau=#CONFIG**}{valeur>0}{cle==version}>
    
    
    Boucle DATA:
    ============
    
    <BOUCLE_r(DATA){datasource http://localhost/spip/?page=backend, rss}>
    <BOUCLE_r1(DATA){datasource http://localhost/spip/rien.json, json}> <BOUCLE_r2(DATA){datasource http://localhost/spip/rien.yaml, yaml}{pagination 5}>
    <BOUCLE_r3(DATA){datasource TEST.CSV, csv}{valeur==France}>
    
    
    Boucle ENUM:
    ============
    
    [(#REM)
    	Echiquier
    ]<B_z>
    	<table>
    	<BOUCLE_z(ENUM){1,8}>
    	<tr>
    	<BOUCLE_y(ENUM){1,8}>
    		<td>
    		[(#_z:VALEUR|plus{64}|chr)]#VALEUR
    		</td>
    	</BOUCLE_y>
    	</tr>
    	</BOUCLE_z>
    	</table>
    </B_z>
    
    
    [(#REM)
    	Une pagination qui va jusqu'au max possible
    ]<B_a>
    [<p class="pagination">(#PAGINATION)</p>]
    <BOUCLE_a(ENUM){pagination 10}>
    #VALEUR
    </BOUCLE_a>
    
    
    
    
    02600a4a
    Historique
    les boucles ENUM et DATA arrivent :
    Fil a rédigé
    Boucle POUR:
    ============
    
    <BOUCLE_x(POUR){tableau=#CONFIG**}{valeur>0}{cle==version}>
    
    
    Boucle DATA:
    ============
    
    <BOUCLE_r(DATA){datasource http://localhost/spip/?page=backend, rss}>
    <BOUCLE_r1(DATA){datasource http://localhost/spip/rien.json, json}> <BOUCLE_r2(DATA){datasource http://localhost/spip/rien.yaml, yaml}{pagination 5}>
    <BOUCLE_r3(DATA){datasource TEST.CSV, csv}{valeur==France}>
    
    
    Boucle ENUM:
    ============
    
    [(#REM)
    	Echiquier
    ]<B_z>
    	<table>
    	<BOUCLE_z(ENUM){1,8}>
    	<tr>
    	<BOUCLE_y(ENUM){1,8}>
    		<td>
    		[(#_z:VALEUR|plus{64}|chr)]#VALEUR
    		</td>
    	</BOUCLE_y>
    	</tr>
    	</BOUCLE_z>
    	</table>
    </B_z>
    
    
    [(#REM)
    	Une pagination qui va jusqu'au max possible
    ]<B_a>
    [<p class="pagination">(#PAGINATION)</p>]
    <BOUCLE_a(ENUM){pagination 10}>
    #VALEUR
    </BOUCLE_a>