Commit 68e195d
committed
Add FormatterModifier to unify placeholder modifiers
Introduce a generic FormatterModifier that dynamically instantiates and
applies any formatter based on the pipe syntax. This eliminates the need
to create separate modifier classes for each formatter.
The modifier parses `{{placeholder|formatterName:arg1:arg2}}` syntax,
resolves the formatter class via FormatterBuilder, and applies it to
the value. If the formatter doesn't exist or fails, it gracefully
delegates to the next modifier in the chain.
Assisted-by: Copilot
Assisted-by: OpenCode (ollama-cloud/glm-4.7)
Assisted-by: Claude Code (Claude Opus 4.5)1 parent 801a389 commit 68e195d
File tree
10 files changed
+3533
-7
lines changed- docs
- modifiers
- src
- Modifiers
- tests
- Integration
- Unit
- Modifiers
10 files changed
+3533
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | 58 | | |
40 | 59 | | |
| |||
0 commit comments