SDF 2.001: SDF Reference: default Filter

Contents | Parent Topic | Previous Topic | Next Topic
Home | Catalog

# 5.11. default Filter

## Interface

The general syntax is:

      !block default[; parameters]
      table
      !endblock

The parameters are:

Name | Type | Rule
family | string | <\w+>
export | boolean |

The table fields are:

Field | Category | Rule
Name | key | <\w+>
Value | optional |

See Understanding Filter Interfaces, if necessary.

## Description

The default filter is a convenient way of calling the default macro for several variables.

The family parameter is often used to specify a common prefix.

The export parameter can be used to export the variables to the target document system. See the export macro for further details on variable exporting.

## Examples

    !block default
    Name            Value
    COMPANY_NAME    ACME Mining
    COMPANY_PHONE   1234 5678
    !endblock

A simpler version is:

    !block default; family="COMPANY"
    Name    Value
    NAME    ACME Mining
    PHONE   1234 5678
    !endblock