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 thedata.schemadirective, which has the following keys:name(str, optional): same as the directive argumentattr(dict, can be empty): same as the directive optionscontent(str, optional): same as the directive content
template(dict): Template definition, works same as thedata.templatedirective, which has the following keys:text(str): the Jinja2 template text.on(str, optional): same asdata.template:ondebug(bool, optional): same asdata.template:debug
See Defining Custom Directives for example.