Configuration

The extension provides the following configuration:

data_define_directives
Type:
dict
Default:
{}

A dictionary dict[str, directive_def] for creating custom directives for data definition.

The str key is the name of the directive to be created; The directive_def value is a dict with the following keys:

  • schema (dict): Schema definition, works same as the data.schema directive, which has the following keys:

    • name (str, optional): same as the directive argument

    • attr (dict, can be empty): same as the directive options

    • content (str, optional): same as the directive content

  • template (dict): Template definition, works same as the data.template directive, which has the following keys:

See Defining Custom Directives for example.