-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,116 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
.. _fluid-internals: | ||
|
||
=============== | ||
Fluid Internals | ||
=============== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:titlesonly: | ||
|
||
* |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
.. _introduction: | ||
|
||
============ | ||
Introduction | ||
============ | ||
|
||
Fluid is a PHP-based templating engine for web projects. In contrast to other | ||
templating engines, it uses an XML-based syntax in its templates, which allows | ||
template authors to apply their existing HTML knowledge in Fluid templates. | ||
|
||
Fluid originated in the TYPO3 and Neos ecosystem before it was extracted | ||
from these projects into a separate PHP package. While its main usage nowadays | ||
is within TYPO3 projects, it can also be used as an independent templating | ||
language in PHP projects. | ||
|
||
In Fluid, all dynamic output is escaped by default, which makes the templating | ||
engine secure by default. This prevents common XSS (Cross Site Scripting) | ||
mistakes that can easily happen in HTML templates. | ||
|
||
Fluid comes with a range of so-called ViewHelpers that allow various formatting | ||
and output modification directly in the template. Custom logic can be added | ||
by providing custom ViewHelper implementations through a straightforward | ||
PHP API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
:navigation-title: Comments | ||
|
||
.. _fluid-syntax-comments: | ||
|
||
====================== | ||
Fluid Syntax: Comments | ||
====================== | ||
|
||
If you want to completely skip parts of your template, you can make use of | ||
the :ref:` <f:comment> ViewHelper <typo3fluid-fluid-comment>`. | ||
|
||
.. versionchanged:: Fluid 4.0 | ||
The content of the :ref:` <f:comment> ViewHelper <typo3fluid-fluid-comment>` is removed | ||
before parsing. It is no longer necessary to combine it with CDATA tags | ||
to disable parsing. | ||
|
||
.. code-block:: xml | ||
<f:comment> | ||
This will be ignored by the Fluid parser and will not appear in | ||
the source code of the rendered template | ||
</f:comment> | ||
You can also use the :ref:` <f:comment> ViewHelper <typo3fluid-fluid-comment>` to temporarily comment | ||
out invalid Fluid syntax while debugging: | ||
|
||
.. code-block:: xml | ||
<f:comment> | ||
<x:someBrokenFluid> | ||
</f:comment> |
Oops, something went wrong.