ZPT-JS reference
Configuration options
- command. The action to run. Available options are
preload
, fullRender
(default), partialRender
and update
.
- declaredRemotePageUrls. A list of URLs within external macros.
- dictionary. An object containing key/value pairs accesible by the template.
- dictionaryChanges. An object containing key/value pairs with changes over the dictionary.
- goToURLHash. Update the
location.href
to the current URL hash.
- i18n. An object to make it easy to preload i18n files.
- indexExpressions. ZPT-JS builds an index with all the expressions and their dependencies depending on this value.
- maxFolderDictionaries. Sets the number of folder dictionaries to read.
- root. The node(s) of the DOM to process a full render.
- target. The node(s) of the DOM to process a partial render.
- notRemoveGeneratedTags. Sets whether ZPT-JS will remove the previously generated tags before processing.
Attributes
-
All the attributes. The complete list of ZPT-JS attributes and their ZPT attributes.
-
Evaluation order. The order used by ZPT-JS to evaluate each attribute.
-
Template Attribute Language (TAL):
- TALAttributes. Replaces the value of an attribute (or creates an attribute) with a dynamic value.
- TALCondition. Includes the statement element in the template only if the condition is met, and omits it otherwise.
- TALContent. Inserts text or structure in place of its children.
- TALDeclare. Declares a list of variables and some settings about them.
- TALDefine. Defines variables.
- TALOmitTag. Leaves the contents of an element in place while omitting the surrounding start and end tags.
- TALOnError. Provides error handling for your template.
- TALRepeat. Replicates a sub-tree of your document once for each item in an array.
- TALReplace. Replaces an element with dynamic content.
-
Macro Expansion Tag Attribute Language (METAL):
-
I18N attributes:
- I18nDomain. Defines one or more expressions that evaluate to one or more sources of i18n resources.
- I18nLanguage. Defines an expression that evaluates to the current language to use in translations.
Expressions
Misc