Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ph-7/h2otpl

🐘 The simplest and best way to separate your HTML (template) code from your PHP code while coding in PHP. H2OTpl is an easy, fast and secure PHP template engine including a cache system
https://github.com/ph-7/h2otpl

h2o-framework native-php-templates php php-template php-template-engine template template-engine templates

Last synced: about 1 month ago
JSON representation

🐘 The simplest and best way to separate your HTML (template) code from your PHP code while coding in PHP. H2OTpl is an easy, fast and secure PHP template engine including a cache system

Awesome Lists containing this project

README

        

# H2OTpl - PHP Template Engine

## Description

β€œThe **simplest and best way** to separate your HTML (template) code from your PHP code while coding in PHP!”

**H2OTpl** is an **easy**, **fast** and **secure** PHP template engine.

It was created for my **H2O Engine** (framework), but now I have decided to create a standalone version for people who don't want to use it with my H2O framework.

## My other Web Template Engines

1. **[PHXSLT](http://github.com/pH-7/XSLT-PHP-Template-Engine)** is a [XSLT](http://en.wikipedia.org/wiki/XSLT) Template Engine for PHP.

2. **[PH7Tpl](https://github.com/pH7Software/pH7-Social-Dating-CMS/tree/master/_protected/framework/Layout/Tpl/Engine/PH7Tpl)** There is not standalone version available.
pH7Tpl is integrated into my **[pH7Frameowork](https://github.com/pH7Software/pH7-Social-Dating-CMS/tree/master/_protected/framework)**. It supports two different syntaxes. The first looks slightly to Smarty syntax and the second is inspired to XSLT/XML syntax but simplified and easier to use.

## Server Requirements

*H2OTpl* class can work with **PHP 5.2**, but not the demo. So, I recommend to have **PHP 5.4** or higher installed.

## Author

Pierre-Henry Soria

## Contact

You can contact me at: *ph7software {AT} gmail {DOT} com*

## License

This script is under [Lesser General Public License](http://www.gnu.org/copyleft/lesser.html) (LGPL); See the LICENSE.txt file for more information.