Copying / Stamp t.e.

the beautiful template engine

It's often necessary to copy a snippet of HTML before using it. Otherwise the original gets changed. To copy a snippet:

 
    $se 
= new StampTE($templateHTML);
    
$mypizza $se->get('pizza')->copy(); 

With the $mypizza object we can now do whatever we want without affecting the original snippet. See 'Examples' for a more detailed example of how to use this.

 



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