The following applies when using JADE_TAG tags on your HTML pages.
The <JADE_TAG name=headerTag> tag creates a property of primitive type
The <JADE_TAG name=includeHeader value=Header> tag creates a property of type
For example, if your system has a common header, create an HTML file containing only this header information and import this file into JADE. You can then insert this document into another imported document by using the <JADE_TAG name=includeHeader value=Header> syntax. At run time, the HTML will be inserted into the main page.
The <JADE_TAG name=nameLabel _translate=translatableStringName> tag creates translatable strings in the HTML document source.
When the HTML is generated for a document containing the _translate attribute, a lookup of the specified translatableStringName string is performed, using the locale defined for the session. If the locale does not exist, it is set to null (""), or if the string does not exist in the list of translatable strings, the <JADE_TAG> tag is replaced by the translatableStringName string itself. If the string does exist, the <JADE_TAG> tag is replaced by the value of the translatable string for that locale.
A selective extract of a JadeHTMLClass subclass extracts the translatable string definitions of all translatable strings that are defined in the HTML document.
In the case of a patch extract, if the translatable string is not defined in the patch, extracting a patch extract extracts only what is defined in the patch so it is not extracted.
If a JADE_TAG tag is to be used as an attribute of another tag, the JADE_TAG tag must be enclosed in single quote characters ('') or in double quote characters (""). For example, when using this tag with the <A> tag, you could specify the following.
<A href = "<JADE_TAG name=updateAccount>"> Edit </A>
At run time, the value of the updateAccount property is used to generate the HTML code; for example, the following is generated if updateAccount := http://www.jadeworld.com"; in your JADE code.
<A href = "http://www.jadeworld.com"> Edit </A>
Although you can insert JADE_TAG tags within <select> and </select> tags, the value of the property associated with the JADE_TAG should contain only <option> and </option> tags. Inserting any other tag may cause unpredictable behavior (browser-dependent).
See also "Generating Data for JADE_TAG Tags Only", later in this chapter.