{% include "example.html" with name="John" hide_last_name=True %}
Basically, I am trying to include "example.html" as a sub-template in my main template. Additional context is provided with the mean of passing the keyword arguments name
and hide_last_name
. While the django template system has no trouble recognize name
, it somehow just can't recognize hide_last_name
. I suspect the use of boolean keyword argument in Include
tag is now allowed but then I can't find anywhere in the official docs mentions that. Please help out. Thanks.