django - How to use nested template tags with arguments? -


I would like to know how I can use nested template tags where the hair template tag takes an argument below: / P>

  {% parent_tag {% child_tag ​​arguments%} rest_of_parent_arguments%}  

In the above row, I return the value of the hair tag as an Arabic Parents' tags would like to use.

I will replace child_tag ​​with a custom filter like this:

  {% parent_tag argument1 | Filnetame: argument2 rest_of_parent_arguments%}  

Considering "logic" there are mostly 2 arguments. For custom filters see here:


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -