aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.189 - [locs] Built-In

Mnemonic aid: locs for LOCal Style

See also:  [ghost] ,  [glos] ,  [gstyle] ,  [listg] ,  [s] ,  [spage]  and  [style] 

Also, there is more information on styles beginning here.

This built-in invokes a local style(s.) sep= defaults to a comma, and is only meaningful when multiple contents are provided.  [locs styleName]  is functionally the same syntax as using  {styleName} , other than only fetching local styles. However there is one important difference beyond it being slightly more wordy and limited to local styles.

When using {}, the style names are fixed, it can't be defined by your code. But when using  [locs styleName] , the styleName is a parameter, so you can fill it in programatically if you like. This can provide a great deal of flexibility.

You can invoke multiple styles on multiple contents as shown in the syntax below, but the number of styles and the number of contents must match. You can't invoke multiple styles on no or a non-matching number of content(s.) See  [s for examples of multiple style use. The syntax is identical.


[locs (sep=X,)globalStyleName(,globalStyleNameN) (styleContent)(XstyleContentN)]

[style boldenx <b>[b]</b>]
[locs boldenx foo]
[local mystyle boldenx]
[locs [v mystyle] pretty bold, eh?]

<b>foo</b>
<b>pretty bold, eh?</b>
foo pretty bold, eh?

Other built-ins used here:  [b] ,  [local] ,  [style]  and  [v] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses Python 2.7