Collecting / Stamp t.e.

the beautiful template engine

To obtain a lot of elements defined in a template all at once, you can collect them like this:

 
    
<!-- cut:chest -->
    <
div>
        <!-- 
cut:diamond -->
        <
img src="diamond.gif" />
        <!-- /
cut:diamond -->
    </
div>
    <!-- /
cut:chest -->
    
    <
div id="box">
        <!-- 
paste:jewellery -->
    </
div>    
 
    
list($diamond,$chest) = $se->collect('chest.diamond|chest'); 
 



copyright © 2011-2012 Gabor de Mooij | Stamp t.e.