example 1

this is a simple replace test. the text in bold should contain "TEST": {VARIABLE}
now a dynamic block test:
this is block 1.
this is block 2.

id | {DATA.ID}
name | {DATA.NAME}
age | {DATA.AGE}

global variables can be parsed directly into the html without assigns:
$HTTP_HOST={PHP.HTTP_HOST}
$PHP_SELF={PHP.PHP_SELF}
$HTTP_USER_AGENT={PHP.HTTP_USER_AGENT}
etc..
(note that these variables are scanned in the constructor when creating the XTemplate object! so if you need some variables which you have set after creating the template object, you need to call $xtpl->scan_globals() before parsing the actual block!