Data Structures | |
class | zTemplate |
Copyright (C) 2008 Neel Basu (Sunanda Bose)
Zigmoyd PHP Framework is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Zigmoyd PHP Framework is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with Zigmoyd PHP Framework. If not, see <http://www.gnu.org/licenses/>.
Zigmoyd Ultra lite templating Engine does nothing other than find and replace the Place holders. a Template is nothing other than a text file with Place Holders. Like. Hi! {{0}} I am {{1}} The above one is an example of numaric Template. Hi! {{you}} I am {{me}} and this one is an associative template. there are 2 types of templates. one is Project based they resides in usr/share/template directory in your project directory. and another one is global Templates that resides in /usr/share/template directory of your Zigmoyd Installation directory. all templates have an .tmpl.php extention