XiTemplate
Welcome to XiTemplate!
XiTemplate is an easy to use and very fast PHP template engine.
Although PHP is technically a template system by itself since PHP code and HTML
code can coexist in the same file, XiTemplate addresses some common problems with
this approach.
XiTemplate is not the only template engine available so this concept is not a
new one. There are many reasons for wanting to separate logic from presentation.
- Managing large web sites becomes much easier and faster.
- Multiple PHP and HTML developers with varying skills can work on the same
web site without getting in each other's way.
- Changing the look of your web site can be as easy as designing one
new web page and flipping a switch.
The above list is not at all exhaustive. There are many other benefits to
separating logic from presentation.
Why use XiTemplate?
Simple. XiTemplate is very easy to master - even for beginners. The
documentation
is thorough and includes many examples. XiTemplate is also very fast. Even greater
speed has been achieved by porting to the PHP 5 object model. XiTemplate has also had many
eyes on the source code and many changes have been made over the last 2 years to improve
speed. The entire source code to XiTemplate lives in one file consisting of one class consisting
of only a few hundred lines of code. Intelligent error handling has also been added eliminating
the whole annoying "die('blah some error')" thing typical to many PHP applications.
If you are already using some kind of error handling in your PHP project XiTemplate will
fit right in with little to no modification.
|