Skip to content

Template parameters declaration #2

@marcinn

Description

@marcinn

It will be very useful to declare template parameters within templates.
The declaration may contain optional default value and optional descriptions.

This will allow to:

  • achieve DRY for template defaults (instead of using multiple |default filters in template bodies)
  • get a parameters list for the query, to display them
  • add context validation (by obtaining parameteres list and validating context)
  • make templates self-documented

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions