.. ==================================================
.. FOR YOUR INFORMATION
.. --------------------------------------------------
.. -*- coding: utf-8 -*- with BOM.
.. include:: ../Includes.txt
.. _usagefluid:
Usage inside the Fluid template
===============================
kreXX does not only work in PHP. We have added a debug viewhelper for fluid.
Namespace
^^^^^^^^^
When using TYPO3 6.2 until 8.4, you need to declare the namespace first. If you are using TYPO3 8.5 and later, this will not be necessary anymore.
.. code-block:: html
{namespace krexx=Brainworxx\Includekrexx\ViewHelpers}
or
The debugging viewhelpers
^^^^^^^^^^^^^^^^^^^^^^^^^
Using the viewhelper is pretty much straight forward:
.. code-block:: html
{_all}
{_all}
|
|
.. figure:: ../Images/FluidDebugger/fluid_debugger.png
:width: 946px
:alt: Screenshot of the fluid debugger output
Fluid debugger output with source generation for fluid.
kreXX will then try to analyse everything inside the variable given to it.