6. Configuration and examples
6.2. Examples
The demo_advanced.py file in the samples directory provides various examples that should serve as an additional source of information and inspiration for further experimentation.
The most important demo functions are:
General examples
demo_shoplist_advanced: A shopping list generated using most of the data-driven filling features.demo_shoplist_advanced_custom_cfg: A shopping list generated from a template using custom tag format configuration.
Custom feature extensions implemented using the fill handler with manual filling methods
demo_macros_1anddemo_macros_2: Template macros, i.e., template blocks referenced in multiple places in the template and filled with different data.demo_extensions_1anddemo_extensions_2: Template extensions, i.e., modification of existing template blocks using other custom extension blocks.