When building an SRecode based application, you will need to setup your dictionary values yourself. There are several utility functions for this.
In the simplest form, you can associate a string with a variable.
In dictionary dict, set name to have value.
For section macros, you can have alternate values. A section can either be toggled as visible, or it can act as a loop.
In dictionary dict, indicate that the section name should be exposed.
In dictionary DICT, add a section dictionary for section macro NAME. Return the new dictionary.
You can add several dictionaries to the same section entry. For each dictionary added to a variable, the block of codes in the template will be repeated.
If optional argument SHOW-ONLY is non-nil
, then don’t add
a new dictionary if there is already one in place. Also, don’t add
FIRST/LAST entries.
These entries are not needed when we are just showing a section.
Each dictionary added will automatically get values for positional macros which will enable SECTIONS to be enabled.
The first entry in the table.
Not the first entry in the table.
The last entry in the table
Not the last entry in the table.
Adding a new dictionary will alter these values in previously inserted dictionaries.