.. _fragments: Fragments --------- If you are just using iommi's built in components like `Form` and `Table`, you won't need to use `Fragment` directly. `Fragment` is a class that is used to compose HTML tags in a way that is later refinable. The most basic example of this is the :ref:`h_tag ` of a form or table. A `Fragment` has :ref:`attrs `, :ref:`template` and :ref:`tag` configuration: .. code-block:: python table = Table( auto__model=Artist, h_tag__attrs__style__background='blue', ) .. raw:: html
▼ Hide result
Toggle structure
See the API reference for :doc:`Fragment` for more details.