You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am trying to use an include tag when passing parameters as follows
{% include "views/pagination.html" with controller="users" %}
While getting the value of the parameter controller works with {{}} syntax, it does not seem to be in the context-map and thus is not usable in custom tags in the partial ("views/pagination.html" in my case).
My current solution is rather ugly
{% with controller=controller|default:"users" %}
{% include "views/pagination.html" %}
{% endwith %}
so I would like to know if there is a better way to do something like that or will it be very difficult for me to implement it?
Currently, the with option in the include tag only handles static content. This is handled by the split-include-tag. It should be possible to extend that to allow dynamic content if you're up for taking a look at that.
Hello,
I am trying to use an include tag when passing parameters as follows
While getting the value of the parameter
controller
works with{{}}
syntax, it does not seem to be in thecontext-map
and thus is not usable in custom tags in the partial ("views/pagination.html" in my case).My current solution is rather ugly
so I would like to know if there is a better way to do something like that or will it be very difficult for me to implement it?
Note: This might be related to #78.
The text was updated successfully, but these errors were encountered: