Identifiers / Stamp t.e.

the beautiful template engine

An HTML snippet is identified by the region ID. For instance the region ID of:

 
<!-- cut:pizza -->
    <
pizza>
        <
olive />    
    </
pizza>
<!-- /
cut:pizza -->

is: "pizza" To obtain the ID of our pizza:

 
    $se 
= new StampTE($templateHTML);
    echo 
$se->get('pizza')->getID(); //outputs 'pizza'
 



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