SimpleProcessor
If it is not necessary to further process the data transferred
by TypoScript, a Simple is available. This passes the
transferred data directly to the Renderer without any further
interaction.
Usage
tt_content.tx_myextension_mymodule = USER
tt_content.tx_myextension_mymodule {
userFunc = CPSIT\Typo3Handlebars\DataProcessing\SimpleProcessor->process
userFunc.templatePath = Extensions/FluidStyledContent/MyModule
}
Copied!
As you can see, the Simple is directly addressed as
user. It already provides the necessary functionality,
but can of course also be extended with your own requirements.
Furthermore it is necessary to indicate a template path with (this normally
happens in the Presenter). The Simple throws an exception, if
the template path is not set or invalid.