- .. templatetag:: embed
-
- embed
- -----
-
- The {% embed %} tag can be used in two ways.
-
- To set which template will be used to render a particular model::
-
- {% embed <app_label>.<model_name> with <template> %}
-
- To embed the instance specified by the given parameters in the document with the previously-specified template (any kwargs provided will be passed into the context of the template)::
-
- {% embed (<app_label>.<model_name> <object_pk> || <instance>) [<argname>=<value> ...] %}