RPCL Template Engine

From HTML5 Builder
Jump to: navigation, search

The RPCL template engine is an extension of the Smarty engine which includes additional RPCL-specific features.

Note: This page only covers the additions on top of Smarty this engine provides, see the Smarty page for additional documentation.

Components

References to components from Smarty template files look like this:

{% $ComponentName %}

But that syntax, while clear and straightforward, does not let you define style features for the component. The RPCL Template Engine is meant to solve that problem.

On top of the previous way, you can define components on templates with the syntax below:

<h5b:TypeOfComponent id="ComponentName" />

For example, for a button, it could be like this:

<h5b:Button id="Button1" />