Stamp works by using a different metaphor for templating. Instead of using inline code, templates are treated from outside; from the side of the controller or the PHP code. Templates are treated as if they are paper models, or card models. You can cut parts of the template and glue them elsewhere. Another way to look at this is to perceive the template as a collection of stamps; you can select a region, copy it, and paste it elsewhere. This way you modify the template from the outside instead of inserting presentation logic in your HTML itself.
copyright © 2011 Gabor de Mooij | Stamp PHP Template Library