NiKKi /Doc /Macros /RecordTable

Top
Up
Contents
RecentChanges
Attachment
Backlinks
Print
Show Page
ViewSource
Login
User:38.103.63.18
(anonymous)
3222 hits since Fri Jun 7 23:25:17 2002
This macro converts records format to table.

<RecordTable( 
 * [item]Field specification 
 * [explanation]Fields are specified by 
   r'^ * \[([^\]]]+\](.*)'  
 * [comment] body can be multiline 
)> 
 
<RecordTable( 
 * [item]Record specification 
 * [explanation]Records are separated by  
   blank line 
 * [comment]Each record doesn't have to 
   have all the fields. 
)> 
 
<RecordTable( 
 * [item]''Why this spec?'' 
 * [explanation]I chose this format so that 
   if individual record is in a page, it is 
   rendered as a list.  
 * [comment]See GatherRecords 
)> 
 
<RecordTable( 
 * [name]Abbey 
 * [phone]xxx-xxx-xxxx 
 * [email]xxx@yyy.zzz 
 
 * [name]Puyo 
 * [phone]111-222-4444 
 * [email]aaa@bbb.ccc 
)> 

Above will be rendered as:
itemField specification
explanationFields are specified by r'^ * \[([^\]]]+\](.*)'
commentbody can be multiline

itemRecord specification
explanationRecords are separated by blank line
commentEach record doesn't have to have all the fields.

itemWhy this spec?
explanationI chose this format so that if individual record is in a page, it is rendered as a list.
commentSee GatherRecords ?

nameAbbey
phonexxx-xxx-xxxx
email xxx@yyy.zzz

namePuyo
phone111-222-4444
email aaa@bbb.ccc