DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Fluid View HelperΒΆ
The extension comes with a view helper for Fluid. As curly braces
({
and }
) are used as markers in Fluid, they must be escaped so as not to
break Fluid rendering.
Declaration of the namespace:
{namespace expression = Cobweb\Expressions\ViewHelpers}
Usage:
<expression:evaluate>Current page id is \{tsfe:id\}</expression:evaluate>
Result:
Current page id is 1
Usage (with inline notation):
{expression:evaluate(expression:'Current user is \{fe_user:username\}')}
Result:
Current user is zaphod