.. _template: `template` ---------- With the :ref:`philosophy of escape hatches `, at the edge we enable replacing the entire rendering of components with the `template` config. You can use it in `Table` cells, to render table rows, to replace the rendering of fields, inputs, headers, and more. The `template` argument supports two types of values: Template path ~~~~~~~~~~~~~ Strings are interpreted as template paths: .. code-block:: python form = Form.create( auto__model=Artist, fields__name__template='test_template_as_path.html', ) .. raw:: html
▼ Hide result
Toggle structure
`Template` object ~~~~~~~~~~~~~~~~~ Pass a Django `Template` object to write the template code you want inline: .. code-block:: python form = Form.create( auto__model=Artist, fields__name__template=Template('template contents here'), ) .. raw:: html
▼ Hide result
Toggle structure