| Recommend this page to a friend! |
| Packages of Rafa Rodriguez | Div PHP Template Engine | docs/Features/Locations.md | Download |
|
|||||||||||||||||||||
The locations are tags that identify some positions into template. With this feature you can define a location in any part of the template, and then collocate any content in this location. The tag that represent the location can be repeated in other positions. Also, you can locate several template pieces in the same location. Now you can separate two concepts: the content from their location in the template. This advantage can be resolved with [[Simple replacements]] of [[Template's variables]] but this is not sufficient and it is not equal. Syntax
Example layout.tpl
index.tpl
Output |