.. include:: /Includes.rst.txt .. _usage: ===== Usage ===== The extension ships three Fluid ViewHelpers: * :ref:`lim:widget.responsiveImage ` renders a complete :html:`` element with media queries, source sets and optional WebP sources. * :ref:`lim:image ` extends :html:`` with source sets, WebP support and image server options. * :ref:`lim:uri.image ` extends :html:`` with image server options. .. _usage-namespace: Namespace ========= The namespace `lim` is registered globally in :file:`ext_localconf.php`. To get IDE support, declare it on top of your template: .. code-block:: html :caption: EXT:my_sitepackage/Resources/Private/Templates/Example.html .. _usage-best-practice: Best practice: source sets as variables ======================================= Inline notation is always possible in Fluid. The syntax gets messy as soon as you deal with nested arrays, and `sourceSets` is a nested array. Store the source sets in a Fluid variable with :html:`` and pass the variable to the ViewHelper. See :ref:`usage-responsive-image-inline` for an example. .. toctree:: :titlesonly: ResponsiveImage Image UriImage