Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Julien PACHET  >  Simplest Template  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: class use example
Class: Simplest Template
Template engine based on simple text replacing
Author: By
Last change:
Date: 8 years ago
Size: 357 bytes
 

Contents

Class file image Download
<?

$template
=new template("",'a');

$title="Title of my first templeted page!";
$body="Body of my page (little short!)";
$tail="Copyright Julien PACHET (lol!)";

$template->replace("CSS_FILE","");
$template->replace("TITLE",$title);
$template->replace("BODY",$body);
$template->replace("TAIL",$tail);

// display!
echo $template->get();

?>