Predefined resources overview
This topic describes the syntax used in the GAS configuration file for predefined resources (i.e. variables). .
While most resources are defined in the GAS configuration file (as.xcf), predefined resources can not be explicitly defined as they are automatically replaced depending on the path of the application you are executing. Therefore, in order that they are available for use, they are predefined as resources using an XML tagging mechanism, which is described in this topic.
Syntax 1
$(resource-name)
resource-name
is the name of a resource defined in the GAS configuration file.
Syntax 2
<tag gwc:tpl-attribute="tpl-value" [...]
>...</tag>
tag
is an HTML tag.tpl-attribute
is an attribute.tpl-value
is the value of the attribute.
Usage example
For example, we can define the path to an application's web component directory as follows:
<WEB_COMPONENT_DIRECTORY>$(application.path)/webcomponents</WEB_COMPONENT_DIRECTORY>