Getting started with XTemplate

Last edited by JeremyCoates
Mon, 29 Mar 2010 14:27 BST [diff]

The first thing to note about XTemplate is that the download (or CVS) version comes with a number of example files that document the main features of XTemplate. For reference, they are listed here.
Output: The output that is sent to the browser
PHP Source: Colour coded php code required to produce the Output
Template: HTML that, along with the php code produces the Output

Example 1: Basic template functions - simple replace / dynamic blocks Output PHP Source Template
Example 2: Multiple level dynamic blocks Output PHP Source Template
Example 3: Auto reset Output PHP Source Template
Example 4: Recursive parsing Output PHP Source Template
Example 5: Null strings Output PHP Source Template
Example 6: Null blocks Output PHP Source Template
Example 7: File includes Output PHP Source Template Template include 1 Template include 2 Template include German Template include English

For reference, a colour coded version of XTemplate is also available: XTemplate Class
There is also phpdoc output available.

Comments [Hide comments]
Comment by
2006-02-07 08:54:27

As I can see in first examples there is no difference against FastTemplate. Correct me please...
Comment by JeremyCoates
2006-12-27 09:25:04
XTemplate is based on FastTemplate syntax and only syntax - the code is much better :)
Comment by WikiMoric
2007-11-27 13:18:51
I am russian programmer and I just begin to study the CMS. I decided to begin my learning with your product. Where can I find more documents about XTempalte?
Examples is very small, I don't understand material, represented in them.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki