Besides the normal cut-and-paste way to dealing with templates you can use a slightly more advanced technique. Actually for developers there is nothing new to learn, however for designers they can add a restriction on a paste-region to indicate developers may only attach certain kinds of snippets.
<!-- cut:pacman -->
<img src="pacman.gif" />
<!-- /cut:pacman -->
<div class="maze">
<!-- paste:maze(pacman) -->
</div>
The syntax for a region restriction is: paste:X(Y). Where X is the name of the paste area and Y is the name of the snippet that may be glued here. Multiple snippets can be defined; use a comma-separated list for this. In the example above the designer makes it very clear that we may only insert a pacman in the maze. Now in the following example, also based on our pacman arcade game, the designer allows both a ghost and pacman:
<div class="maze">
<!-- paste:maze(pacman,ghost) -->
</div>
copyright © 2011 Gabor de Mooij | Stamp PHP Template Library