Skip to content

Commit 931715a

Browse files
author
daFish
committed
Added twig-syntax for data-prototype.
1 parent 6e3bc9f commit 931715a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cookbook/form/form_collections.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,3 +739,7 @@ Render a custom prototype
739739

740740
Most of the time the provided prototype will be sufficient for your needs and does not need to be changed.
741741
Should you need to render a prototype for your own specific needs a
742+
But if you are in the situation were you need to have a complete custom prototype you can render it yourself:
743+
744+
.. code-block:: html+jinja
745+
data-prototype="{% filter escape %}{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' with { 'form': form.task.get('prototype') } %}{% endfilter %}"

0 commit comments

Comments
 (0)