jeyroik / df-templates
There is no license information available for the latest version (0.1.1) of this package.
Templates fot DF
0.1.1
2023-08-24 17:50 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-24 20:31:28 UTC
README
df-templates
Templates for DF
Provide interfaces and helper classes for templating anything for applications and it's parameters.
usage
Templating consists of two stages:
- Preparing data for template.
- Making template.
The library provides several tools to help you with these tasks:
IWithTemplate
entity.- Supports application name for filtering templates.
- Supports params names for filtering.
with_templates
storage.ITemplateService
for getting templates.IContext
helps clarify the current context and desired results.- Stages for making templates based on the context.
So to get started with templating using df-templates
, you will need:
IWithTemplate
entity.- A dispatcher for preparing data for the template.
- A plugin for making the template.
For more detailed usage instructions, please see the tests provided with the library.