| aa_macro syntax |
| aa_macro source |
| HTML source |
| HTML render |
Key
|
|
§ 4.184 - [s] Built-In
Mnemonic aid: s styleName
See also: [s styleName] )
Also, there is more information on styles beginning here.
This built-in invokes a style. [s styleName] is functionally the same syntax as using {styleName} .
There are three differences beyond [s styleName] being slightly more wordy than {stylename} .
-
You can create two levels of processing; a level where only { and } are accepted but not [ or ], and therefore no new macros can be defined, nor can any of the powerful lower level built-ins be invoked. That creates an environment where you can define the macros, but users can only use them.
-
When using {styleName} , the style names are fixed, they can't be defined by your code. But when using [s styleName] , the styleName is a parameter, so you can fill it in programmatically if you like, for instance, from a variable. This can provide additional flexibility. Also, since one style can call another, you can bury a use of [s styleName] under a use of {styleName}
-
When using the form {styleName content} , you can separate the styleName from the content by either a space or a newline. It is strictly a cosmetic difference.
Other built-ins used here: [s styleName] )