PostProcessor
class PostProcessor (View source)
The post-processor class.
Properties
private | $Automad | The Automad instance. | |
private | $headless | A boolean variable that contains the headless state | |
private | $InPage | The InPage instance. |
Methods
Run all required post-process steps.
Find all locally hosted assests and append a timestamp in order to avoid serving outdated files.
Add meta tags to the head of $str.
Create the HTML tags for each file in the asset collection and prepend them to the closing tag.
Obfuscate all stand-alone eMail addresses matched in $str.
Resize any image in the output in case it has a specified size as query string like for example "/shared/image.jpg?200x200".
Details
at line 80
__construct(Automad $Automad, InPage $InPage, bool $headless)
The post-processor constructor.
at line 96
string
process(string $output)
Run all required post-process steps.
at line 115
private string
addCacheBustingTimestamps(string $str)
Find all locally hosted assests and append a timestamp in order to avoid serving outdated files.
at line 139
private string
addMetaTags(string $str)
Add meta tags to the head of $str.
at line 156
private string
createExtensionAssetTags(string $str)
Create the HTML tags for each file in the asset collection and prepend them to the closing tag.
at line 187
private string
obfuscateEmails(string $str)
Obfuscate all stand-alone eMail addresses matched in $str.
Addresses in links are ignored. In headless mode, obfuscation is disabled.
at line 226
private string
resizeImages(string $str)
Resize any image in the output in case it has a specified size as query string like for example "/shared/image.jpg?200x200".