4 .. automodule:: philo.templatetags
9 .. automodule:: philo.templatetags.collections
11 .. templatetag:: membersof
18 {% membersof <collection> with <app_label>.<model_name> as <var> %}
21 .. automodule:: philo.templatetags.containers
23 .. templatetag:: container
30 {% container <name> [[references <app_label>.<model_name>] as <variable>] %}
32 .. automodule:: philo.templatetags.embed
34 .. templatetag:: embed
39 The {% embed %} tag can be used in two ways.
41 To set which template will be used to render a particular model::
43 {% embed <app_label>.<model_name> with <template> %}
45 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)::
47 {% embed (<app_label>.<model_name> <object_pk> || <instance>) [<argname>=<value> ...] %}
49 .. automodule:: philo.templatetags.include_string
51 .. templatetag:: include_string
56 Include a flat string by interpreting it as a template.
60 {% include_string <template_code> %}
62 .. automodule:: philo.templatetags.nodes
64 .. templatetag:: node_url
71 {% node_url [for <node>] [as <var>] %}
72 {% node_url with <obj> [for <node>] [as <var>] %}
73 {% node_url <view_name> [<arg1> [<arg2> ...] ] [for <node>] [as <var>] %}
74 {% node_url <view_name> [<key1>=<value1> [<key2>=<value2> ...] ] [for <node>] [as <var>] %}