aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 

4.33 - [graw] Built-In

Mnemonic aid: graw for Global RAW local variable

See also:  [gload] ,  [global] ,  [gsave] ,  [gv] ,  [load] ,  [lv] ,  [page] ,  [raw] ,  [save] ,  [v] ,  [vdec]  and  [vinc] 

 [graw]  is like  [global] , except that it is intended for use only in the outmost, top-level context. It scans through the supplied content without processing it, and stores it in the specified global variable. The contents can then be retrieved using  [v]  or  [gv] , again only in the outmost context, without being processed. This allows you to place blocks of code verbatim from a variable. When using HTML, you'd contain this in an inline HTML  <div>  </div>  to control the display; if you feed the  [graw]  variable to any aa_macro operator that isn't designed to take raw input the content probably will be processed. There are a few operators, such as  [getc] , that are specifically designed to take  [graw]  input.


Because  [graw]  has to parse through its content until it finds its own closing ], the [ and ], and the { and } instances in the content must both be balanced, that is, for every [ there must be a later, corresponding ] and for every { there must be a later, corresponding }.

[graw variableName content]

[graw test [i 123]]
[v test]

[lb]i 123[rb]
[i 123]

Other built-ins used here:  [i]  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