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

This package is auto-updated.

Last update: 2024-04-24 19:09:38 UTC


README

tests codecov.io 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65613636353932353165643861653136316130352f6d61696e7461696e6162696c697479 Latest Stable Version Total Downloads Dependents

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.