kbrmedia / Simple-PHP-Template-System

A very simple php templating system for very simple websites

Home Page:https://gempixel.com/blog/quick-simple-template-system-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple PHP Template System

This is a very simple PHP class that you can use to generate clean template files without hassle.

INCLUDE THE PHP CLASS

require("core/Template.class.php");

INSTANTIATE THE TEMPLATE CLASS

$template = new Template();

OPEN THEME FILE

$template->file("demo.tpl");

ASSIGN PHP VARIABLES

$template->assign("title", "My Page Title");

RENDER THE TEMPLATE FILE

$template->render();

Disclaimer

This is not meant for big projects. You can use for small projects such your own website.

About

A very simple php templating system for very simple websites

https://gempixel.com/blog/quick-simple-template-system-php

License:MIT License


Languages

Language:PHP 88.3%Language:Smarty 11.7%Language:Hack 0.1%