ConditionalProcessor
class ConditionalProcessor extends AbstractFeatureProcessor (View source)
The conditional processor.
Properties
protected | $Automad | The main Automad instance. | from AbstractFeatureProcessor |
protected | $ContentProcessor | The content processor instance. | from AbstractFeatureProcessor |
protected | $Runtime | The Runtime instance. | from AbstractFeatureProcessor |
Methods
__construct(Automad $Automad, Runtime $Runtime, ContentProcessor $ContentProcessor)
The feature processor constructor.
process(array $matches, string $directory, bool $collectSnippetDefinitions)
Process if
and `if .
static
syntaxPattern()
The pattern that is used to match conditionals in a template string.
initTemplateProcessor()
Create a new instance of the template processor.
Details
__construct(Automad $Automad, Runtime $Runtime, ContentProcessor $ContentProcessor)
The feature processor constructor.
at line 60
process(array $matches, string $directory, bool $collectSnippetDefinitions)
Process if
and `if .
.. else` statements.
at line 190
static
syntaxPattern()
The pattern that is used to match conditionals in a template string.
protected TemplateProcessor
initTemplateProcessor()
Create a new instance of the template processor.