Skip to content

Support rules in modifier arguments #2

@jwoolley

Description

@jwoolley

Modifiers currently support optional arguments, e.g.:

  • #fruit.repeat(3)# ➡ appleappleapple

But the arguments can't themselves contain tracery rules, so the following isn't permitted:

  • #fruit.repeat(#number#)#

This feature is currently called out in the Tracery codebase as a "todo". It would be a useful feature for building more sophisticated modifiers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions