#native_company# #native_desc#

Better alternative to FastTemplates?

By Christopher Brown-Floyd
on October 3, 2001

If you’ve been doing PHP for a while, you probably use templates to separate your HTML from your PHP code. To do this, there are a number of template processor scripts out there that you could use. So far, FastTemplate has been the leading processor. UltraTemplate, on the other hand, employs more powerful tags which makes your scripts smaller and speeds up developement time.

Here’s an example HTML page using UltraTemple:

<tag:Content as="b" defaultValue="Hello UltraTemplate user!" />

…and the code to process it:

// Include UltraTemplate class

// Instanciate UltraTemplate class
objTemplate = new UltraTemplate();

// Load the template

// Bind to template

// Display template

Using the code above, the HTML page will render as:

<b>Hello UltraTemplate user!</b>

To learn more or download UltraTemplate go to http://www.ultratemplate.com/