FeedWriter final class
Minn\Front\FeedWriter · public/minn/src/Minn/Front/FeedWriter.php · 57 lines
A feed as it is written: text as given, and what each template tag and action prints, in the order the template asks for them.
Used by 2
Constants and properties
| private | string $out |
Public
| method | put(string ...$text): self# | Text as written. |
| method | tag(string $function, mixed ...$args): self# | What a function that prints (a template tag) prints, called with its arguments. |
| method | cdata(string $function, mixed ...$args): self# | What a template tag prints, for inside a CDATA section: a "]]>" in it is split so it cannot close the section (a hardening rule; the reference lets a stored name break out, contracts/front/probes.md). |
| static | insideCdata(string $text): string# | Text made safe inside a CDATA section: "]]>" becomes "]]]]><![CDATA[>", which a reader joins back into the same characters. |
| method | act(string $hook, mixed ...$args): self# | What an action's callbacks print. |
| method | text(): string# | Everything written so far. |
Nothing matches.