jeyroik / df-templates
Templates fot DF
Installs: 446
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jeyroik/df-templates
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2025-09-24 22:29:55 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.