// PRINT_EXPRESSION // This is a PHP expression which will RETURN text to be included // in the template. This will be dereferenced to: <?php print( ... ); ?> // INCLUDE_EXPRESSION // This is a PHP expression which will RETURN a string containing a // file name to be included. This will be dereferenced to: <?php include( ... ); ?> // FOREACH_EXPRESSION // This MUST be a foreach expression from PHP. A foreach // expression is anything in the format "array as variable". It // will be dereferenced to: <?php foreach( ... ) { ?> ... <?php } ?> // IF_EXPRESSION // This must be a PHP expression that you would expect to find // inside an if() statement. It will be dereferenced to: <?php if( ... ) { ?> ... <?php } elseif ( ... ) { ?> ... <?php } else { ?> ... <?php } ?>
<html> <body> {| "Hello " |} {@ preg_split("//", "world.") as $letter @} {? "." == $letter ?} ! {! " " == $letter !} {!} {| $letter |} {?} {@} </body> </html>