Skip to content

Unify placeholder modifiers #8

Closed

Description

@henriquemoody

We have lots of formatter right now (Hooray!), and ideally we'd have as many placeholder formatters. It's not ideal to have once modifiers class for each formatters.

I would like to have a general modifier that would parse any placeholder modifier and the FormatterBuilder::__callStatic() (or something else) execute a formatter as a placeholder modifier. The Modifier interface remains useful, because we do not want to tight the modifiers to the formatters and not all of them deal with strings, but want to have one modifier implementation that's coupled to our own formatters.

Modifiers already support arguments via subsequent : after the pipe, like list:or, we just need to make those arguments values to pass to the construtor of the formatters.

Activity

  1. henriquemoody commented on Feb 7, 2026

    @henriquemoody
    MemberAuthor

    Closed by #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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